Evaluates the incomplete gamma function.
Namespace:
Imsl.Math
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public static double GammaIncomplete( double a, double x ) |
Visual Basic (Declaration) |
---|
Public Shared Function GammaIncomplete ( _ a As Double, _ x As Double _ ) As Double |
Visual C++ |
---|
public: static double GammaIncomplete( double a, double x ) |
Parameters
- a
- Type: System..::.Double
A double value representing the integrand exponent parameter of the incomplete gamma function. If a is less than zero a Double.NaN is returned. equal to zero.
- x
- Type: System..::.Double
A double value specifying the point at which the incomplete gamma function is to be evaluated. If x is less than zero or equal to zero, Double.NaN or 0.0 respectively is returned. nonnegative.
Return Value
A double value specifying the incomplete gamma function.
Remarks
The lower limit of integration of the incomplete gamma function,
, is defined to be

Although is well defined for
, this algorithm does not calculate
for negative x. For large a
and sufficiently large x,
may overflow.
is bounded by
, and users may find this bound a useful guide in
determining legal values for a.
Note that the upper limit of integration of the incomplete gamma,
, is defined to be

Therefore, by definition, the two incomplete gamma function forms satisfy the relationship
