FNCgammareturns the value of the gamma function of the complex valuez,Γ(z). The value ofΓ(z) approaches ± aszapproaches a real negative integer or zero. The gamma function is related to the factorial of a nonnegative integern, by the relation
This relation is often used to define a factorial function for all complex numbers except negative real integers and zero, by replacingnin the above expression with a complex variable.
Errors
FNCgammacauses 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.