commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (MATH-1269) FastMath.exp may return NaN for non-NaN arguments
Date Fri, 11 Sep 2015 07:58:46 GMT

     [ https://issues.apache.org/jira/browse/MATH-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb updated MATH-1269:
-----------------------
    Comment: was deleted

(was: Note: I had a quick look at expm1() and that seems to naturally return infinity when
required without needing to check that the input is too large. Unfortunately defining exp()
in terms of expm1() does not retain sufficient precision.)

> FastMath.exp may return NaN for non-NaN arguments
> -------------------------------------------------
>
>                 Key: MATH-1269
>                 URL: https://issues.apache.org/jira/browse/MATH-1269
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Otmar Ertl
>         Attachments: MATH-1269.patch, MATH-1269.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message