in

.NET Opensource

Community for opensource projects by Christoph Rüegg

Incomplete Gama Function

Last post 04-01-2009 16:21 by asxinyu. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-01-2009 10:22

    Incomplete Gama Function

    Hi there, I'm new here.

    I would like to know if the Incomplete Gama Function is part of this math lib? I

  • 04-01-2009 14:03 In reply to

    Re: Incomplete Gama Function

    Yes. But beware, there are several similar functions in this area.

    We provide:

    • Fn.Gamma(a) = GAMMA(a) = int(exp(-t)t^(a-1), t=0..infty)
    • Fn.GammaRegularized(a,x) = P(a,x) = 1/GAMMA(a) * int(exp(-t)t^(a-1),t=0..x)

    This relates to the incomplete gamma functions as follows:

    • gamma(a,x) = int(exp(-t)t^(a-1),t=0..x) = lower incomplete gamma function
    • Gamma(a,x) = int(exp(-t)t^(a-1),t=x..infty) = upper incomplete gamma function
    • P(a,x) = gamma(a,x)/GAMMA(a)
    • gamma(a,x) + Gamma(a,x) = GAMMA(a)

    Therefore:

    • Gamma(a,x) = (1-P(a,x))*GAMMA(a) = (1-Fn.GammaRegularized(a,x))*Fn.Gamma(a)
    • gamma(a,x) = P(a,x)*GAMMA(a) = Fn.GammaRegularized(a,x)*Fn.Gamma(a)

    Please note that there is currently a known convergence issue in some cases in Fn.GammaRegularized, see here. I'm working on that.

  • 04-01-2009 16:21 In reply to

    Re: Incomplete Gama Function

    It is useful,thanks....

Page 1 of 1 (3 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems