[
https://issues.apache.org/jira/browse/MATH-1561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gilles Sadowski resolved MATH-1561.
-----------------------------------
Resolution: Feedback Received
> StackOverflowError is thrown in Gamma.digamma(x) and Gamma.trigamma(x)
> ----------------------------------------------------------------------
>
> Key: MATH-1561
> URL: https://issues.apache.org/jira/browse/MATH-1561
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 3.6.1
> Environment: Java 8, macOS, Darwin Kernel Version 19.6.0
> Reporter: Dmitriy V. Golovashkin
> Priority: Major
>
> {color:#0033b3}java.lang.StackOverflowError is thrown in:{color}
> {code:java}
> double x = -10_000;
> double ans1 = Gamma.digamma(x); // stack overflow
> double ans2 = Gamma.trigamma(x); // stack overflow
> {code}
> It would be nice if the methods returned NaN / Infinity, rather than abort
> calculations.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)