Ruud H.G. van Tol on Fri, 09 Feb 2024 18:48:09 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: floor(tanh(91)) depends on the precision
|
- To: pari-dev@pari.math.u-bordeaux.fr
- Subject: Re: floor(tanh(91)) depends on the precision
- From: "Ruud H.G. van Tol" <rvtol@isolution.nl>
- Date: Fri, 9 Feb 2024 18:48:01 +0100
- Delivery-date: Fri, 09 Feb 2024 18:48:09 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=isolution.nl; s=soverin; t=1707500884; bh=tVmpNwnidSijdE7gkez0adjltyvq+G4f34vbVrnxlMw=; h=Date:Subject:To:References:From:In-Reply-To:From; b=kuAOLVCZkBiUL3dG7DAaauJ3iPs+Sw9LBJZC/6KW35/Ee35R/uFuKts47s4S+rPok iLT9VV1Wq4JTUsrxJ5AkmWPWoW11Mn3bG6fJ1UDdf4mxvxFDR7GQ1Xk7ECZ1XPnKHt c0n6sv2hxYCU1zV57j9i3rkvWWfLLzDdv9LSoFk0j/9nceorqD64SVMgXIfUGY2W5J uJrd3WhjLI+LWFqvNk6Ql0/7qbpcev/MYdgfPeSeFgSlkwKh1DPpwmcfotAhL0btch qdV7j3p+WDZbfaYbtNEU+ONS5qTYlpoU26dsawK6cxNr0pNxUuui0OaJc8wx10USFK Nq+M9ggxaOzrQ==
- In-reply-to: <CAGUWgD_FC94LOK9HoPqcv+NgKmdZG9GCAMR4xUbyzCN+3548ug@mail.gmail.com>
- References: <CAGUWgD_FC94LOK9HoPqcv+NgKmdZG9GCAMR4xUbyzCN+3548ug@mail.gmail.com>
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