[
https://issues.apache.org/jira/browse/MATH-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14737879#comment-14737879
]
Gilles commented on MATH-1269:
------------------------------
Why _choose_ a number?
Didn't you determine it precisely above?
Isn't just a matter of changing the test from
{code}
if (intVal > 709)
{code}
to
{code}
if (x > 709.782712893384)
{code}
?
> 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
>
>
> 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)