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

In Complex, replace hand-coded hypot with Java.lang.Math.hypot

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.0-beta1
    • complex
    • None

    Description

      ISO C standard for Complex numbers states that the abs() must be obtained with a hypot() function to avoid over and underflows. The function is correctly hand-coded in the current iteration of Complex, but I see no need for this. Propose replacing with java.lang.Math.hypot to make the code and its conformance to ISO C more easily comprehensible.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ericbarnhill Eric Barnhill
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: