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

Home » Public Forums » archive » Re: the NaN effect :-|
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: the NaN effect :-| [message #54394 is a reply to message #54392] Tue, 12 June 2007 09:11 Go to previous messageGo to previous message
rkombiyil is currently offline  rkombiyil
Messages: 59
Registered: March 2006
Member
On Jun 13, 12:59 am, Paolo Grigis <pgri...@astro.phys.ethz.ch> wrote:
> metachronist wrote:
>> [...]
>
>> IDL's docu says:
>> <snip from IDL ref guide: Page 1269/4090>
>> If the MAX function is run on an array containing NaN values and the
>> NAN keyword is not set, an invalid result will occur.
>> </snip>
>> The same is said for MIN also.
>
>> So the result (OPS with MIN/MAX) is directly proportional to the
>> number of NaN's we eat? er, add to the array? :P
>
>> So what is right and what is wrong? Enlighten, please.
>
> Why do you expect an "invalid" result to make sense?
>
> Ciao,
> Paolo
>
Paolo,
I know the right way to do is include the NaN keyword, but minus the
keyword, shouldn't it fail even with single 'NaN' in the array, per
the documentation? That's what I was wondering. I mean the min and max
values were "valid" in the first two cases? Am I making sense?
/rk
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: defining a data structure
Next Topic: Dealing with Large data arrays, reducing memory and ASSOC

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

Current Time: Fri Oct 10 14:16:35 PDT 2025

Total time taken to generate the page: 7.60009 seconds