You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles Sadowski (Jira)" <ji...@apache.org> on 2020/10/29 14:01:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17222912#comment-17222912 ] 

Gilles Sadowski commented on MATH-1561:
---------------------------------------

The functionality has been moved to a [module|https://gitbox.apache.org/repos/asf?p=commons-numbers.git;a=tree;f=commons-numbers-gamma;h=6ed59fd3947051d935067601c315a7e7a62121b2;hb=HEAD] of a new ["Commons Numbers" component|http://commons.apache.org/proper/commons-numbers/].

Could you please check the implementation there, and file a report to the [dedicated JIRA tracker|https://issues.apache.org/jira/projects/NUMBERS]?  Thanks.

Also, if you suggest an API change (such as returning NaN instead of letting the exception bubble up), it should be proposed and discussed on the ["dev" ML of the "Commons" project|https://commons.apache.org/mail-lists.html].

> 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
> {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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)