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: Tue, 14 Jun 2016 15:38:10 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

Update of bug #45507 (project octave):

                  Status:               Need Info => In Progress            

    _______________________________________________________

Follow-up Comment #28:

Thanks, I combine that with my empirical testing to mean that the result of
std::acos should be conjugated only when z is purely real and positive.
Updated patch attached, also covering bug #44310.

Almost all test cases in Marco's testx3 script now match. Only mismatching one
is


>> asinh (1e8j)
ans =  19.1138 +  1.5708i


So is the postprocessing here to invert the sign of the real part when real(z)
== 0 and imag(z) > 1?

I included std::atan as well for symmetry, even though it may not have had any
domain problems as written.

Anyone care to contribute any test cases to this, e.g. based on testx3?

(file #37472)
    _______________________________________________________

Additional Item Attachment:

File name: complex-fns.diff               Size:6 KB


    _______________________________________________________

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]