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

◆ Cgamma()

Function Cgamma ( Z As  Complex,
Optional Info As  Long 
)

Gamma function Γ(z) (complex argument)

Purpose
This routine computes the gamma function at a complex number z.
Returns
Complex
Gamma function Γ(z).
Parameters
[in]ZArgument z (Z <> 0 and Z <> a negative integer)
[out]Info(Optional)
= 0: Successful exit.
= -1: The argument Z had an illegal value. (Z = 0 or a negative integer)
= 1: Floating point range error.