GAMMA Function

Returns the value of the gamma function.

Category: Mathematical

Syntax

GAMMA(argument)

Required Argument

argument

specifies a numeric constant, variable, or expression.

Restriction Nonpositive integers are invalid.

Details

The GAMMA function returns the integral given by
G A M M A ( x ) = 0 t x - 1 ε - t d t .
For positive integers, GAMMA(x) is (x − 1)!. This function is commonly denoted by Γ ( x ) .

Example

This SAS statement produces this result.
SAS Statement
Result
x=gamma(6);
120