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

Home » Public Forums » archive » divide by zero problems
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: divide by zero problems [message #15392 is a reply to message #15362] Sat, 15 May 1999 00:00 Go to previous messageGo to previous message
korpela is currently offline  korpela
Messages: 59
Registered: September 1993
Member
In article <bowman-1405991756240001@tl6-218-141.tca.net>,
Kenneth P. Bowman <bowman@null.tamu.edu> wrote:
>> IDL> PRINT, !VALUES.F_NAN EQ !VALUES.F_NAN
>> 1
>> % Program caused arithmetic error: Floating illegal operand
>
> I thought that by definition NaNs are not a number and hence not equal to
> *anything* else. Thus the FINITE function.

That's the point. In IEEE math there is no need for a FINITE function.
X eq X is enough to test for NaN. X EQ !Values.F_NAN should always return
0. Even if X is NaN. Period. Excamation point!

If RSI thinks it's not important that IDL be IEEE compliant, they're wrong.
I may consider that bit of non-portability/non-compliance a good reason not
to code for IDL under ANY platform.

Eric

--
Eric Korpela | An object at rest can never be
korpela@ssl.berkeley.edu | stopped.
<a href="http://setiathome.ssl.berkeley.edu/~korpela">Click for home page.</a>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Variable stride in array indices
Next Topic: graphic formats

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

Current Time: Wed Oct 08 19:58:23 PDT 2025

Total time taken to generate the page: 0.00418 seconds