Previous Page | Next Page

Functions and CALL Routines

GAMMA Function



Returns the value of the gamma function.
Category: Mathematical

Syntax
Arguments
Details
Examples

Syntax

GAMMA(argument)


Arguments

argument

specifies a numeric constant, variable, or expression.

Restriction: Nonpositive integers are invalid.

Details

The GAMMA function returns the integral given by

[equation]

For positive integers, GAMMA(x) is (x - 1)!. This function is commonly denoted by [equation].


Examples

SAS Statements Results
x=gamma(6);
120

Previous Page | Next Page | Top of Page