AdvancedMathRightRegularizedGamma Method

Computes the normalized upper (right) incomplete gamma function.

Definition

Namespace: Meta.Numerics.Functions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static double RightRegularizedGamma(
	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 Q(a, x) = Γ(a,x) / Γ(a).

Remarks

This function is the complement of the left regularized incomplete gamma function LeftRegularizedGamma(Double, Double). Their values sum to one.

For sufficiently low values of x, this function becomes 1 within floating point precision. To determine its deviation from 1 in this region, use the complementary function LeftRegularizedGamma(Double, Double).

Exceptions

ArgumentOutOfRangeExceptiona is negative, or x is negative.

See Also