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

Home » Public Forums » archive » WRONG RESULTS WITH 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
WRONG RESULTS WITH IDL [message #11714] Tue, 05 May 1998 00:00 Go to previous message
loewenthal is currently offline  loewenthal
Messages: 1
Registered: May 1998
Junior Member
Hi Folks

For calculation of beam-propagation I use IDL. But now I realize that
for large arguments, even with double-precision, IDL gives wrong
results:
For example:

sin(12345678901.12345678901) = -03727 9004 9960 8007

where IDL get:

IDL> x = double(12345678901.12345678901)
IDL> print, sin(x)
0.098761418

Can somebody confirm this result, and does anybody know the solution
to overcome this problem?

Best regards

Frank
[Message index]
 
Read Message
Read Message
Previous Topic: who has my "legend" code?
Next Topic: Spacecraft orbit propagation

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

Current Time: Sat Oct 11 00:44:36 PDT 2025

Total time taken to generate the page: 0.47987 seconds