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

Home » Public Forums » archive » Re: IDL 8.2.2 and PLOT with NaN values
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: IDL 8.2.2 and PLOT with NaN values [message #83697 is a reply to message #83696] Wed, 27 March 2013 14:10 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
Not only are the math errors hardware dependent, but today I came across the fact that it can depend on how the array is ordered.

IDL> print,min([2.,!values.f_nan,3.])
2.00000
IDL> print,min([!values.f_nan,3.,2.])
NaN
IDL> print,!version
{ x86_64 linux unix linux 8.2.2 Jan 23 2013 64 64}

The help for MIN says
"Note: If the MIN function is run on an array containing NaN values and the NAN keyword is not set, an invalid result will occur."

but this should probably read

Note: If the MIN function is run on an array containing NaN values and the NAN keyword is not set, an invalid result **may** occur.



On Wednesday, March 27, 2013 5:39:22 AM UTC-4, Fabien wrote:

> Quoting IDL help:
>
>
>
> "The detection of math errors, such as division by zero, overflow, and
>
> attempting to take the logarithm of a negative number, is hardware and
>
> operating system dependent."
>
>
>
> http://www.exelisvis.com/docs/Math_Errors.html
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: A Healthy Alternative to Takeaway Regret
Next Topic: cursor command

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

Current Time: Fri Oct 10 11:40:10 PDT 2025

Total time taken to generate the page: 0.95907 seconds