octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

max(nan,3) returns 3


From: John W. Eaton
Subject: max(nan,3) returns 3
Date: Thu, 14 Jul 2005 12:57:13 -0400

On 28-Jun-2005, Paul Kienzle wrote:

| Here's a result we may or may not want to change:
| 
|   octave> min(nan,3)
|   ans = 3
|   octave> min(nan,3)
|   ans = 3
| 
| R gets it right:
| 
|   > pmax(3,NaN)
|   [1] NA
| 
| The current behaviour is compatible with matlab, IDL and python numarray.

I think we should probably keep the compatible behavior.

jwe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]