[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #32885] norm(NaN,Inf) produce 0
From: |
Markus Bergholz |
Subject: |
[Octave-bug-tracker] [bug #32885] norm(NaN,Inf) produce 0 |
Date: |
Sun, 21 Sep 2014 09:37:43 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 |
Follow-up Comment #16, bug #32885 (project octave):
In relation to comment #5
== octave 3.8.2 ==
octave:3> norm([NaN,0],inf)
ans = 0
octave:4> norm([0,NaN],inf)
ans = 0
== matlab ==
_Not verified again by me_
>> norm([NaN,0],inf)
ans =
NaN
>> norm([0,NaN],inf)
ans =
0
== With the Patch from Lasse ==
octave:2> norm([NaN,0],inf)
ans = NaN
octave:3> norm([0,NaN],inf)
ans = NaN
So the assert tests are passed. And as far as I see, we got now all variants,
but not what Matlab did.
The real question is, how should GNU Octave behave?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?32885>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #32885] norm(NaN,Inf) produce 0,
Markus Bergholz <=