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

Widen allowable error bound of Math.hypot

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: