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

Home » Public Forums » archive » Re: complex math error?
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: complex math error? [message #4255] Fri, 19 May 1995 00:00 Go to previous message
llobet is currently offline  llobet
Messages: 10
Registered: May 1993
Junior Member
In article <3pgkmo$b3s@post.gsfc.nasa.gov>, thompson@orpheus.nascom.nasa.gov
(William Thompson) writes:

[...]
=I can't make it fail running IDL 3.6.1c under OSF/1 v2.0 on an AXP 3000/600
=workstation. I always get the result
=
= IDL> print, exp( complex(0,1)*sqrt(2.)*10. )^sqrt(2.)
= ( -1.28269e-10, 1.66070e-10)
=
=no matter how many times I try it. (I assume that's the correct value.)


Nope. Just try

IDL> print, exp( complex(0,1)*sqrt(2.)*10. )^sqrt(2.D0)
( -0.611276, 0.791417)

This gives the right value.

-xavier
[Message index]
 
Read Message
Read Message
Previous Topic: Delay in printing to screen
Next Topic: Re: Deleting files from IDL

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

Current Time: Sat Oct 11 09:30:47 PDT 2025

Total time taken to generate the page: 1.91929 seconds