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

Home » Public Forums » archive » Re: no backwards compatibility in IDL 5.6
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: no backwards compatibility in IDL 5.6 [message #34248 is a reply to message #34244] Thu, 27 February 2003 11:17 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark Hadfield (m.hadfield@niwa.cri.nz) writes:

> So yes, the critics are right: backwards incompatibility has been
> impaired. But the damage was done in 5.5 and the changes in 5.6
> represent an attempt to restore the old behaviour (but you have to add
> a keyword).

I've added an article on my web page with a little
program that produces the same results in IDL 5.4, 5.5,
and 5.6 on my machine.

http://www.dfanning.com/math_tips/atan_change.html

I'd be curious to know if this solves the problem for
everyone:

FUNCTION ATAN_COMPLEX_WRAPPER, complexNum

returnValue = 0.0
version = Float(!VERSION.Release)
CASE 1 OF
(version LE 5.4): ok = Execute('returnValue = ATAN(complexNum)')
(version EQ 5.5): BEGIN
realpart = Real_Part(complexNum)
imgpart = Imaginary(complexNum)
ok = Execute('returnValue = ATAN(realpart, imgpart)')
END
(version GE 5.6): ok = Execute('returnValue = ' + $
'ATAN(complexNum, /Phase)')
ENDCASE
RETURN, returnValue
END

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: The continuing saga of WHERE and 2D
Next Topic: Re: labeling my polarplot

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

Current Time: Wed Oct 08 18:00:50 PDT 2025

Total time taken to generate the page: 0.00422 seconds