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

FastMath.exp may return NaN for non-NaN arguments

Rank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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.patch
          1 kB
          Gilles Sadowski
        2. MATH-1269.patch
          3 kB
          Sebb
        3. MATH-1269_fix_z.patch
          3 kB
          Thomas Neidhart
        4. MATH-1269-fix-tempC-infinity.patch
          0.7 kB
          Otmar Ertl

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment