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

FastMath.exp may return NaN for non-NaN arguments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.0, 3.6
    • None
    • 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_z.patch
          3 kB
          Thomas Neidhart
        2. MATH-1269.patch
          3 kB
          Sebb
        3. MATH-1269.patch
          1 kB
          Gilles Sadowski
        4. MATH-1269-fix-tempC-infinity.patch
          0.7 kB
          Otmar Ertl

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: