gamma(X)

Returns the gamma function of the given value.

Syntax

gamma(X)

Input

Argument Type Description
X integer or decimal The value on which to apply the gamma function

Return Value

Returns a decimal number corresponding to the gamma function of X.

If X is negative, the result is N/A.

If X is 0, the result is 0i (positive infinity).

If X is N/A, the result is N/A.

Sample Usage

X gamma(X)
0 0i
1 1
2 1
3 2
4 6
5 24
6 120
7 720
8 5040
9 40320
10 362880
NA NA