[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: divide by zero problems
- Subject: Re: divide by zero problems
- From: mallors(at)msfc.nasa.gov (Robert S. Mallozzi)
- Date: 14 May 1999 18:51:23 GMT
- Newsgroups: comp.lang.idl-pvwave
- Organization: http://www.msfc.nasa.gov/
- References: <3737C79C.372FA82E@aims.gov.au> <7h9m4t$gc9$1@agate.berkeley.edu> <7he06l$m68$1@news5.svr.pol.co.uk> <7hf0ta$5uq$1@agate.berkeley.edu> <7hfhke$gn7$1@clam.niwa.cri.nz>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:14755
In article <7hfhke$gn7$1@clam.niwa.cri.nz>,
"Mark Hadfield" <m.hadfield@niwa.cri.nz> writes:
>> .... Apparently the IDL on some platforms
>> is not IEEE compliant. On those platforms (!values.f_NaN eq
> !values.f_NaN)
>> can be true. I would consider this to be a major bug and would not use
>> IDL on such a platform.
>
> IDL 5.2 on Windows NT gives:
>
> IDL> print, !values.f_NaN eq !values.f_NaN
> 1
> % Program caused arithmetic error: Floating illegal operand
>
> ...Sigh, I guess I'll have to switch to Matlab!
>
Naw, just switch to Linux :-)
IDL> PRINT, !VALUES.F_NAN EQ !VALUES.F_NAN
0
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Robert S. Mallozzi 256-544-0887
Mail Code ES 84
Work: http://gammaray.msfc.nasa.gov/ Marshall Space Flight Center
Play: http://cspar.uah.edu/~mallozzir/ Huntsville, AL 35812
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~