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 (JIRA)" <ji...@apache.org> on 2009/03/16 11:15:50 UTC

[jira] Created: (MATH-249) Gamma incomplete

Gamma incomplete
----------------

                 Key: MATH-249
                 URL: https://issues.apache.org/jira/browse/MATH-249
             Project: Commons Math
          Issue Type: New Feature
    Affects Versions: 2.0
            Reporter: Gilles
            Priority: Minor


Hello.

In the class "special.Gamma", there seem to be no explicit way to obtain the incomplete gamma function.[1]
Could you provide it?

Thanks,
Gilles

[1] http://mathworld.wolfram.com/IncompleteGammaFunction.html


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MATH-249) Gamma incomplete

Posted by "Luc Maisonobe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682490#action_12682490 ] 

Luc Maisonobe commented on MATH-249:
------------------------------------

Could you check if this simple implementation provides good enough results :

{code}
public static double incompleteGamma(double a, double x) {
    return regularizedGammaQ(a, x) * Math.exp(logGamma(a));
}
{code}

this is basically the inversion of equation (2) in [http://mathworld.wolfram.com/RegularizedGammaFunction.html]
If so, I'll check it in.

> Gamma incomplete
> ----------------
>
>                 Key: MATH-249
>                 URL: https://issues.apache.org/jira/browse/MATH-249
>             Project: Commons Math
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Gilles
>            Priority: Minor
>
> Hello.
> In the class "special.Gamma", there seem to be no explicit way to obtain the incomplete gamma function.[1]
> Could you provide it?
> Thanks,
> Gilles
> [1] http://mathworld.wolfram.com/IncompleteGammaFunction.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MATH-249) Gamma incomplete

Posted by "Gilles (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682618#action_12682618 ] 

Gilles commented on MATH-249:
-----------------------------

I had noticed this possibility, but having had a (quick) look at the implementation in GSL, I thought that it might be more complicated: They use several different algorithms, depending on the values of the parameters.
Nevertheless, I'll report your proposal to the user so that he can test whether it's OK for his intended usage.


> Gamma incomplete
> ----------------
>
>                 Key: MATH-249
>                 URL: https://issues.apache.org/jira/browse/MATH-249
>             Project: Commons Math
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Gilles
>            Priority: Minor
>
> Hello.
> In the class "special.Gamma", there seem to be no explicit way to obtain the incomplete gamma function.[1]
> Could you provide it?
> Thanks,
> Gilles
> [1] http://mathworld.wolfram.com/IncompleteGammaFunction.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (MATH-249) Gamma incomplete

Posted by "Luc Maisonobe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MATH-249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luc Maisonobe closed MATH-249.
------------------------------

    Resolution: Invalid

No problem.

> Gamma incomplete
> ----------------
>
>                 Key: MATH-249
>                 URL: https://issues.apache.org/jira/browse/MATH-249
>             Project: Commons Math
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Gilles
>            Priority: Minor
>
> Hello.
> In the class "special.Gamma", there seem to be no explicit way to obtain the incomplete gamma function.[1]
> Could you provide it?
> Thanks,
> Gilles
> [1] http://mathworld.wolfram.com/IncompleteGammaFunction.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MATH-249) Gamma incomplete

Posted by "Gilles (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682660#action_12682660 ] 

Gilles commented on MATH-249:
-----------------------------

Actually, it was the already existing "regularizedGammaQ" which he needed. [The confusion came from the different naming in "Numerical Recipes".]
So, this issue can be closed.  Sorry for the noise...


> Gamma incomplete
> ----------------
>
>                 Key: MATH-249
>                 URL: https://issues.apache.org/jira/browse/MATH-249
>             Project: Commons Math
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Gilles
>            Priority: Minor
>
> Hello.
> In the class "special.Gamma", there seem to be no explicit way to obtain the incomplete gamma function.[1]
> Could you provide it?
> Thanks,
> Gilles
> [1] http://mathworld.wolfram.com/IncompleteGammaFunction.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.