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: Saleh
Subject: [Octave-bug-tracker] [bug #49832] power operator produces different results between Matlab & Octave
Date: Thu, 15 Dec 2016 10:50:31 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

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

I modify the program to test whether each power operation is complex. 

for i=1:12
  for j=1:12
    iscomp(i,j)=~isreal(A(i).^A(j));  
  end
end

I ran it on Matlab and attached the results. It is different from octave.

Also, I noted that matlab cut the value of +eps(0) or -eps(0) to
4.9^-324 when doing some operation (add sub mul  div) on those. This what I
was referring to in my original submission. I gave the indecies where this
happened exactly (in my original submission). However, I am not sure weather
octave should do the same thing or no.




(file #39232)
    _______________________________________________________

Additional Item Attachment:

File name: tstvar2.mat                    Size:1 KB


    _______________________________________________________

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]