RFR: JDK-8316688: Widen allowable error bound of Math.hypot
Joe Darcy
darcy at openjdk.org
Thu Sep 21 19:26:54 UTC 2023
On Thu, 21 Sep 2023 19:19:34 GMT, Joe Darcy <darcy at openjdk.org> wrote:
> The Math.hypot method claims its error bound is one ulp.
>
> The paper
>
> "Accuracy of Mathematical Functions in Single, Double, Double
> Extended, and Quadruple Precision"
> Brian Gladman, Vincenzo Innocente and Paul Zimmermann
> September 21, 2023
> https://members.loria.fr/PZimmermann/papers/accuracy.pdf
>
> lists a known worst-case error of 1.21 ulps for hypot for the "OpenLibm" math library, which is a derivative of FDLIBM.
>
> The specification of Math.hypot should be updated to acknowledge the wider error bound. I changed the allowable error bound to 1.5 ulps is give a bit of cushion.
Please also review the CSR https://bugs.openjdk.org/browse/JDK-8316690
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15868#issuecomment-1730166009
More information about the core-libs-dev
mailing list