octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #32885] norm(NaN,Inf) produce 0


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #32885] norm(NaN,Inf) produce 0
Date: Thu, 24 Mar 2011 08:00:27 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13

Follow-up Comment #5, bug #32885 (project octave):

Without your patch, I see


> norm([NaN,0],inf)
ans = 0
> norm([0,NaN],inf)
ans = 0


with your patch


> norm([NaN,0],inf)
ans = 0
> norm([0,NaN],inf)
ans = NaN


in Matlab


>> norm([NaN,0],inf)
ans =
   NaN
>> norm([0,NaN],inf)
ans =
     0


None of them are satisfactory, but I agree with you that at least your patch
gives norm(NaN,inf)=NaN (as Matlab) and therefore should be applied.

Marco

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32885>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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