Main       Download       Commercial support       FAQ       Forum       About Us

Incomplete gamma function

Incomplete gamma function is defined as

These formulas define the lower incomplete gamma function and the upper incomplete gamma function (depending on whether the lower or upper limit of integration is fixed). The regularized gamma function is closely related to incomplete gamma functions:

Incomplete gamma functions are often met in statistics. For example, the cumulative distribution functions of gamma distribution, Poisson distribution and chi-square distribution could be written by using the incomplete gamma function.

IncompleteGamma subroutine calculates P(a,x), IncompleteGammaC subroutine calculates Q(a,x). Inverse Q(a,x) function is calculated by using the InvIncompleteGammaC subroutine. To calculate the values, the algorithm uses series expansion or continued fractions representation (depending on an argument value).

This article is intended for personal use only.

Download ALGLIB

C#

C# source.

Downloads page

 

C++

C++ source.

Downloads page

 

C++, multiple precision arithmetic

C++ source. MPFR/GMP is used.

GMP source is available from gmplib.org. MPFR source is available from www.mpfr.org.

Downloads page

 

FreePascal

FreePascal version.

Downloads page

 

Delphi

Delphi version.

Downloads page

 

VB.NET

VB.NET version.

Downloads page

 

VBA

VBA version.

Downloads page

 

Python

Python version (CPython and IronPython are supported).

Downloads page

 

 

ALGLIB® - numerical analysis library, 1999-2012.
ALGLIB is a registered trademark of the ALGLIB Project.