Re: floor(tanh(91)) depends on the precision

"Ruud H.G. van Tol" <[email protected]> Fri, 9 Feb 2024 18:48:01 +0100
Newsgroups gmane.comp.mathematics.pari.devel
Message-ID <[email protected]>
On 2024-02-09 18:25, Georgi Guninski wrote:
> There was discussion about this on sage-devel mailing list.
> I don't claim it is a bug, just FYI:
>
> ? floor(tanh(91))
> %1 = 1
> ? default(realprecision,10^4)
> ? floor(tanh(91))
> %3 = 0

? default(realprecision, 79)
? tanh(91)
%2 = 0.999...

? default(realprecision, 78)
? tanh(91) < 1
%3 = 1

See also https://www.wolframalpha.com/input?i=tanh%2891%29
and click on [More digits].

-- Ruud