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

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

[Octave-bug-tracker] [bug #49091] MinGW std::acosh less accurate than Li


From: Rik
Subject: [Octave-bug-tracker] [bug #49091] MinGW std::acosh less accurate than Linux versions
Date: Wed, 3 Aug 2022 11:01:29 -0400 (EDT)

Follow-up Comment #16, bug #49091 (project octave):

I think this is just rounding.  Instead of using "format long", use "printf"
just as you would in C.


z = acosh (10i);
printf ("Octave acosh(10i)  = %.16f + %.16fi\n", real (z), imag (z));
z = acosh (-10i);
printf ("Octave acosh(-10i) = %.16f + %.16fi\n", real (z), imag (z));


On a Linux machine, the result for me is


Octave acosh(10i)  = 2.9982229502979698 + 1.5707963267948966i
Octave acosh(-10i) = 2.9982229502979698 + -1.5707963267948966i





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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