Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Implemented
-
1.0-beta1
-
None
Description
java.lang.StackOverflowError is thrown in
double x = -10_000; double ans1 = Gamma.digamma(x); // stack overflow double ans2 = Gamma.trigamma(x); // stack overflow
It would be nice if the methods returned NaN / Infinity, rather than abort calculations (due to recursion gone wild).
Please see the initial report in Commons Math3:
Attachments
Issue Links
- supercedes
-
MATH-1561 StackOverflowError is thrown in Gamma.digamma(x) and Gamma.trigamma(x)
- Resolved