XLPack 6.1
Excel VBA Numerical Library Reference Manual
Loading...
Searching...
No Matches

◆ Gami()

Function Gami ( A As  Double,
X As  Double,
Optional Info As  Long 
)

Incomplete gamma function γ(a, x)

Purpose
This routine computes the incomplete gamma function.
γ(a, x) = ∫ t^(a-1)*exp(-t) dt [0, x]
Returns
Double
Incomplete gamma function γ(a, x).
Parameters
[in]AArgument a. (A > 0)
[in]XArgument x. (X >= 0)
[out]Info(Optional)
= 0: Successful exit.
= -1: The argument A had an illegal value. (A <= 0)
= -2: The argument X had an illegal value. (X < 0)
= 1: Floating point range error.
Reference
boost/math/special_functions