igamma
Incomplete gamma function
Syntax
Description
returns the upper incomplete gamma function.g
= igamma(nu
,z
)
igamma
uses the definition of the upper incomplete gamma
function. However, the default MATLAB®
gammainc
function uses the definition of
the regularized lower incomplete gamma
function, where gammainc(z,nu) = 1 -
igamma(nu,z)/gamma(nu)
. The order of input arguments differs between these
functions.
Examples
Input Arguments
More About
Tips
The MATLAB
gammainc
function does not accept complex arguments. For complex arguments, useigamma
.gammainc(z,nu) = 1 - igamma(nu,z)/gamma(nu)
represents the regularized lower incomplete gamma function in terms of the upper incomplete gamma function.igamma(nu,z) = gamma(nu)*(1 - gammainc(z,nu))
represents the upper incomplete gamma function in terms of the regularized lower incomplete gamma function.gammainc(z,nu,"upper") = igamma(nu,z)/gamma(nu)
.
Version History
Introduced in R2014a