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)

Reply via email to