You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Aleksei Dievskii (JIRA)" <ji...@apache.org> on 2015/06/24 14:50:04 UTC

[jira] [Created] (MATH-1241) Digamma calculation produces SOE on NaN argument

Aleksei Dievskii created MATH-1241:
--------------------------------------

             Summary: Digamma calculation produces SOE on NaN argument
                 Key: MATH-1241
                 URL: https://issues.apache.org/jira/browse/MATH-1241
             Project: Commons Math
          Issue Type: Bug
    Affects Versions: 3.5
            Reporter: Aleksei Dievskii
            Priority: Minor


Digamma doesn't work particularly well with NaNs.

How to reproduce: call Gamma.digamma(Double.NaN)

Expected outcome: returns NaN or throws a meaningful exception

Real outcome: crashes with StackOverflowException, as digamma enters infinite recursion.



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