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 #50645 is a reply to message #50644] Mon, 16 October 2006 07:15 Go to previous messageGo to previous message
Braedley is currently offline  Braedley
Messages: 57
Registered: September 2006
Member
Also, d/dx(f(g(x)))=f'(g(x))*g'(x) (chain rule), so in your case,
d/dx(sin(x*!dtor))=cos(x*!dtor)*!dtor
If you divide the result from DERIV by !dtor, you'll get the result
you're looking for. My suggestion would be to declare x as
x=findgen(360)*!dtor
to begin with.

Cheers


David Fanning wrote:
> David Fanning writes:
>
>> Wox writes:
>>
>>> Specify x?
>>>
>>> dx = DERIV(x * !dtor,data)
>>
>> Oh, sorry.
>>
>> x = findgen(360)
>>
>> David
>>
>
> Oh, sorry. I misunderstood. Yes, this does it. Thank you!
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[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: Fri Oct 10 10:22:30 PDT 2025

Total time taken to generate the page: 1.81111 seconds