[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49832] power operator produces different resu
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #49832] power operator produces different results between Matlab & Octave |
Date: |
Tue, 13 Dec 2016 05:12:45 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Update of bug #49832 (project octave):
Status: Need Info => Confirmed
Summary: operations on double limites are not compatiable to
matlab => power operator produces different results between Matlab & Octave
_______________________________________________________
Follow-up Comment #2:
The only difference I see is with the power operator. For the other matrices,
I used 'isequaln' which compares equality with NaN comparing equal to NaN.
Because of the NaNs one can't use the equality operator '==', subtraction, or
isequal, to determine if the matrices are equal.
For the power operator, there are differences between how the operator is
computed for scalars and matrices.
For example,
-Inf .^ -Inf
ans = -0
But,
[-Inf 0] .^ [-Inf 1]
ans =
NaN - NaNi 0 + 0i
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49832>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/