comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: what am I doing wrong?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: what am I doing wrong? [message #3586] Fri, 17 February 1995 13:50 Go to previous message
jeyadev is currently offline  jeyadev
Messages: 78
Registered: February 1995
Member
In article <3i0pg0$rf@atom.ansto.gov.au>,
Babak Ardekani <babaka@atom.ansto.gov.au> wrote:
> Dear Netters,
>
> I'm trying to plot the funtion:
>
> f(x)=x*log(x/w)-x (x>0,w>0)
>
> using PV~WAVE.
>
> I know that this function has a minimum at x=w.
>
> ............
>
> THE PROBLEM IS that when I plot this function in PV~WAVE
> the minimum appears at another point.
>
> I'm using the following set of commands:
>
> WAVE> w=5.0
> WAVE> x=INDGEN(400)
> WAVE> x=x+0.1 + 0.01 ; x goes from 0.01 to 40.01
> WAVE> fx=x*ALOG10(x/w)-x
^^

That's what is wrong. Use ALOG(x/w) - the natural logrithm.

> WAVE> PLOT,x,fx
>
> I would appreciate if you would tell me what I'm doing
> wrong?
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: New WWW site - IDL interfacing Info, data acquisition
Next Topic: STRTRIM needs improvement

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 22:36:04 PDT 2025

Total time taken to generate the page: 0.80322 seconds