|
|
Re: NaN problems [message #43726 is a reply to message #43583] |
Fri, 22 April 2005 19:43  |
Y.T.
Messages: 25 Registered: December 2004
|
Junior Member |
|
|
> http://www.dfanning.com/math_tips/nans.html
Pretty cool page.
;)
I don't have access to IDL on a win-box, but I have a (potentially
stupid) question: On that page of yours where you write
IDL> print, array ne array
0 0 0 0 0
have you tried the converse, i.e.
IDL> print, array eq array
?
I am asking since, while it is true that a NaN is not equal to a NaN it
does not seem to follow (to my wrinkled brain) that a NaN is
necessarily UNequal to a NaN.
In your version you test for the latter, and I'm kinda curious what
would happen if you tried the former...
cordially
Y.T.
--
Remove YourClothes before you email me.
|
|
|