You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Dmitriy V. Golovashkin (Jira)" <ji...@apache.org> on 2020/10/29 16:02:00 UTC
[jira] [Updated] (MATH-1561) StackOverflowError is thrown in
Gamma.digamma(x) and Gamma.trigamma(x)
[ https://issues.apache.org/jira/browse/MATH-1561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dmitriy V. Golovashkin updated MATH-1561:
-----------------------------------------
Description:
{color:#0033b3}java.lang.StackOverflowError is thrown in:
{color}
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.
was:
{color:#0033b3}java.lang.StackOverflowError
{color}
{color:#0033b3}double {color}{color:#000000}x {color}= -{color:#1750eb}10_000{color};
{color:#000000}Gamma{color}.digamma({color:#000000}x{color});
{color:#000000}Gamma{color}.trigamma({color:#000000}x{color});
It would be nice if the methods returned NaN / Infinity, rather than abort calculations.
> 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}
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)