Uploaded image for project: 'Commons Numbers'
  1. Commons Numbers
  2. NUMBERS-143

Investigate Math.hypot for computing the absolute of a complex number

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Implemented
    • None
    • 1.0-beta1
    • complex
    • None

    Description

      Math.hypot computes the value sqrt(x^2+y^2) to within 1 ULP. The function uses the e_hypot.c implementation from the Freely Distributable Math Library (fdlibm).

      Pre-java 9 this function used JNI to call an external implementation. The performance was slow. Java 9 ported the function to native java (see JDK-7130085 : Port fdlibm hypot to Java).

      This function is used to define the absolute value of a complex number. It is also used in sqrt() and log(). This ticket is to investigate the performance and accuracy of Math.hypot against alternatives for use in Complex.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aherbert Alex Herbert
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m