Contents Previous Next Subchapters

The Incomplete Gamma Function
Syntax gammainc(xa)
See Also betai , gammln , erf

Description
Returns the element-by-element incomplete gamma function
                             x
                      1     /   - t  (a - 1)
gammainc(xa) = ---------- |  e    t       dt
                  gamma(a)  /
                             0
where a, b, and x are real or double-precision matrices and
     0 < x(i,j< 1
     0 < a
and gamma(a) is the gamma function .

Example
     clear
     x = {0. : .1 : 5.}
     a = 1.
     gplot(x, gammainc(x, a))
     
returns the following plot: