Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8316688

Widen allowable error bound of Math.hypot

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • 22
    • core-libs
    • b17

      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.

            darcy Joe Darcy
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: