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

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

[Octave-bug-tracker] [bug #62332] [MinGW] acos(z), asin(z) and atan(z) ,


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #62332] [MinGW] acos(z), asin(z) and atan(z) , ( z = x + yi ) return wrong result for imaginary part lower than 1e-12
Date: Sun, 7 Aug 2022 14:24:50 -0400 (EDT)

Update of bug #62332 (project octave):

                  Status:                    None => In Progress            
                 Release:                   7.1.0 => dev                    

    _______________________________________________________

Follow-up Comment #7:

Octave uses the math functions from the standard libraries.
It looks like the complex inverse trigonometric and hyperbolic functions of
mingw-w64 have accuracy issues for some regimes.
`cacos` and `casin` both depend on the implementation of `casinh`.
I pushed a patch to MXE Octave that should improve the accuracy of these
function if the absolute value of the imaginary part of the input to `casinh`
is smaller than 1 and the absolute value of the real part is small:
https://hg.octave.org/mxe-octave/rev/6f3c099c0d38

That should hopefully cover the case from comment #0.

I didn't have a look at the implementation of `catan` (respectively, `catanh`)
yet.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62332>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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