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

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

[Octave-bug-tracker] [bug #45507] acos returns different results on big


From: anonymous
Subject: [Octave-bug-tracker] [bug #45507] acos returns different results on big input values
Date: Fri, 10 Jul 2015 07:06:11 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0

Follow-up Comment #2, bug #45507 (project octave):

Sorry, I didn't pay enough attention to the sign of the imaginary part. You
were right Rik. Here are the double checked results:

Matlab (R2013b):
acos(1e7) = 0.0000 +16.8112i
acos(1e8) = 0.0000 +19.1138i

Octave 3.8.2:

acos(1e7) = 0.00000 - 16.81124i
acos(1e8) = 0.00000 - 19.11383i

Octave 4.0.0:

acos(1e7) = 0.00000 + 16.80543i
acos(1e8) = NaN + Infi

Conclusion: The changes from Octave 3.8.2 to 4.0.0
* improved the Matlab compatibility regarding the sign of the imaginary part.
* but partly destroyed the compatibility regarding the values of the real
part. (for input values >~6e7)

(In my calculations I only used the real part, so that's why I bothered about
this most...)

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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