[Top][All Lists]

[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:

That should hopefully cover the case from comment #0.

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


Reply to this item at:


Message sent via Savannah

reply via email to

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