AdvancedMathGamma(Double, Double) Method

Computes the upper incomplete Gamma function.

Definition

Namespace: Meta.Numerics.Functions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static double Gamma(
	double a,
	double x
)

Parameters

a  Double
The shape parameter, which must be positive.
x  Double
The argument, which must be non-negative.

Return Value

Double
The value of Γ(a,x).

Remarks

The incomplete Gamma function is defined by the same integrand as the Gamma function (Gamma(Double)), but the integral is not taken over the full positive real axis.

Like the Γ function itself, this function gets large very quickly. For many purposes, you will prefer to use the regularized incomplete gamma functions LeftRegularizedGamma(Double, Double) and RightRegularizedGamma(Double, Double), which are accurately computed even in regions for which this function overflows.

To make clearer which incomplete gamma function is meant, this function is be retired. Call UpperIncompleteGamma(Double, Double) instead.

See Also