XLPack 7.0
XLPack Numerical Library (Excel VBA) Reference Manual
Loading...
Searching...
No Matches

◆ Gamic()

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

Complementary incomplete gamma function Γ(a, x)

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