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.
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.
- csr for
-
JDK-8316690 Widen allowable error bound of Math.hypot
-
- Closed
-
- relates to
-
JDK-8326530 Widen allowable error bound of Math.tan
-
- Resolved
-
-
JDK-8229259 Math.hypot result not always within 1 ulp of exact result
-
- Closed
-
- links to
-
Commit openjdk/jdk/b66ded9a
-
Review(master) openjdk/jdk/15868