This funciton evaluates the incomplete gamma function.
GAMI — Function value. (Output)
A — The integrand
exponent parameter. (Input)
It must be positive.
X — The upper
limit of the integral definition of GAMI.
(Input)
It must be nonnegative.
Specific: The specific interface names are S_GAMI and D_GAMI.
Double: The double precision function name is DGAMI.
The incomplete gamma function is defined to be
The function γ(a, x) is defined only for
a greater than zero. Although γ(a, x) is well defined for
x >-∞, this algorithm does not calculate γ(a, x) for
negative x. For large a and sufficiently large x,
γ(a, x) may overflow. γ(a, x) is bounded by G(a), and users may find this bound a
useful guide in determining legal values of a.
Because logarithmic variables are used, a slight deterioration of two or three digits of accuracy will occur when GAMI is very large or very small.
Figure 4- 3 Contour Plot of g(a, x)
In this example, γ(2.5, 0.9) is computed and printed.
WRITE (NOUT,99999) A, X, VALUE
99999 FORMAT (' GAMI(', F6.3, ',', F6.3, ') = ', F6.4)
|
Visual Numerics, Inc. PHONE: 713.784.3131 FAX:713.781.9260 |