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

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

[Octave-bug-tracker] [bug #49832] power operator produces different resu


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #49832] power operator produces different results between Matlab & Octave
Date: Thu, 15 Dec 2016 09:10:05 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0

Follow-up Comment #3, bug #49832 (project octave):

In Matlab 2014 I see


-Inf .^ -Inf

ans = 0


and


[-Inf 0] .^ [-Inf 1]
ans =

     0     0


I would keep the signed 0, but since isreal(Inf)=1 and real powers of real
numbers are real numbers, [-Inf 0] .^ [-Inf 1] should be real.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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