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 #50643] Mon, 16 October 2006 07:31 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Allan Whiteford writes:

> Surely when you type:
>
> dx = DERIV(x * !dtor,data)
>
> you're actually doing:
>
> d/d(x*!dtor) (sin(x*!dtor))
>
> which is:
>
> cos(x*!dtor)
>
> i.e. you shouldn't need to divide the result by !dtor.
>
> Of course, declaring x as findgen(360)*!dtor to start with looks a lot
> cleaner and is probably easier to follow, but I don't think what was
> suggested by Wox gives the wrong answer.

I think Bradley was suggesting an alternative way
of getting to the same answer. And, indeed it does.
His explanation adds insight to the original problem.

Cheers,

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:20:44 PDT 2025

Total time taken to generate the page: 1.27803 seconds