HTBasic Help
×
Menu
Index
Gamma
Gamma function of a real argument.
 
Loading        LOADSUB ALL FROM "GAMMA.HTS"
or LOADSUB FROM "MATHLIB.HTS"
 
Usage                REAL X,Y
Y=FNGamma(X)
 
Description                
FNGamma returns the value of the gamma function at x, (x). This function is defined for all real values of x except for x zero or a negative integer, at which points (x) becomes infinite.
 
If x is equal to a positive integer, n, the gamma function is related to the factorial by the relation
This relationship is often used to define a factorial for any real number, by using the definition
 (x)
 
Errors
FNGamma causes an HTBasic error if its argument is not of type REAL or if x 0 and x is an integer.
 
See Also
Fact, Cgamma