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

Home » Public Forums » archive » Re: Differentiation in IDL
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: Differentiation in IDL [message #50649 is a reply to message #50648] Mon, 16 October 2006 06:54 Go to previous message
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
Specify x?

dx = DERIV(x * !dtor,data)


On Mon, 16 Oct 2006 07:49:21 -0600, David Fanning <news@dfanning.com>
wrote:

> Folks,
>
> OK, I'm missing something crucial here.
>
> Suppose I have a sine function:
>
> x = Findgen(360)
> data = Sin(x * !dtor)
> Plot, data
>
> I know that d/dx(sin(x)) = cos(x). So, I would expect
> a cosine looking curve if I differentiate the data above.
>
> dx = DERIV(data)
> OPlot, dx, Linestyle=2
>
> The differentiated curve is almost a straight line! One
> could argue that it might have the correct cosine *shape*
> (squint your eyes a little bit), but the scale is vastly
> different. How come?
>
> Cheers,
>
> David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Differentiation in IDL
Next Topic: Re: Basic format code question

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

Current Time: Sun Oct 12 09:50:10 PDT 2025

Total time taken to generate the page: 0.48112 seconds