HTBasic Help
×
Menu
Index
Cgamma
Complex gamma function of a complex argument.
 
Loading        LOADSUB ALL FROM "CGAMMA.HTS"
or LOADSUB FROM "MATHLIB.HTS"
 
Usage                COMPLEX Z,C
C=FNCgamma(Z)
 
Description                
FNCgamma returns the value of the gamma function of the complex value z, Γ(z). The value of Γ(z) approaches ± as z approaches a real negative integer or zero. The gamma function is related to the factorial of a nonnegative integer n, by the relation
 
This relation is often used to define a factorial function for all complex numbers except negative real integers and zero, by replacing n in the above expression with a complex variable.
 
Errors                
FNCgamma causes an HTBasic error if its argument is not of type COMPLEX or if the magnitude of either the real or the imaginary component of Γ(z) exceeds MAXREAL, the largest number representable.
 
See Also
Cloggamma, Gamma