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: Mike Miller
Subject: [Octave-bug-tracker] [bug #45507] acos returns different results on big input values
Date: Mon, 13 Jun 2016 23:36:33 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

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

Hmm, I get this ("ans" lines removed):


acos
    0.000 + 19.114i    0.000 + 19.114i
    3.142 - 19.114i    3.142 + 19.114i
    1.571 - 19.114i    1.571 - 19.114i
    1.571 + 19.114i    1.571 + 19.114i
    0.785 - 19.460i    0.785 - 19.460i
    0.785 + 19.460i    0.785 + 19.460i
    2.356 - 19.460i    2.356 - 19.460i
    2.356 + 19.460i    2.356 + 19.460i


This looks correct except for one case, so as before, I just need some hint
from someone who understands what should be done about the imaginary part to
make the result Matlab compatible.


>> acos (-1e8)
ans =   3.1416 + 19.1138i


According to Marco's test script this should be conjugated, or should not have
been conjugated.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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