From bug-request at octave dot org Sat Jan 15 09:17:37 2005 Subject: ANY(NaN) should return 0 instead of 1 From: Schloegl Alois To: octave bug mailing list Date: Sat, 15 Jan 2005 04:47:42 -0600 Hi, Octave 2.1.64 returns 1 for ANY(NaN) and ANY([0,NaN]). I suggest to change this; ANY(NaN) and ANY([0,NaN]) should return 0. Rationale: ANY(NaN) should be handled like ANY([]) which yields 0. This would be also consistent with the behavior of ALL(NaN) which returns 1. Thanks for considering, Alois ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------