Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1269

FastMath.exp may return NaN for non-NaN arguments

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.0, 3.6
    • Labels:
      None

      Description

      I have observed that FastMath.exp(709.8125) returns NaN. However, the exponential function must never return NaN (if the argument is not NaN). The result must always be non-negative or positive infinity.

        Attachments

        1. MATH-1269-fix-tempC-infinity.patch
          0.7 kB
          Otmar Ertl
        2. MATH-1269.patch
          1 kB
          Gilles
        3. MATH-1269.patch
          3 kB
          Sebb
        4. MATH-1269_fix_z.patch
          3 kB
          Thomas Neidhart

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Otmar Ertl Otmar Ertl
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: