[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #32885] norm(NaN,Inf) produce 0
From: |
Armin Müller |
Subject: |
[Octave-bug-tracker] [bug #32885] norm(NaN,Inf) produce 0 |
Date: |
Sun, 21 Sep 2014 19:10:55 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:32.0) Gecko/20100101 Firefox/32.0 SeaMonkey/2.29 |
Follow-up Comment #19, bug #32885 (project octave):
It is difficult to follow the comments what "The Matlab (R)" is doing.
Probably it has to be noted which version.
Matlab V7.1 R14 SP3 says (9 years old):
>> norm([NaN,0],inf)
ans =
NaN
>> norm([0,NaN],inf)
ans =
0
=> This is not plausible, as Marco pointed out. But it was fixed quite some
time ago. Maybe "traditional" would go too far.
Matlab R2012a says (2 1/2 years old):
>> norm([NaN,0],inf)
ans =
NaN
>> norm([0,NaN],inf)
ans =
NaN
Also see the manual of current R2014a:
http://www.mathworks.de/de/help/matlab/ref/norm.html
"norm returns NaN if the input contains NaN values."
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?32885>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/