LGAMMA Function

Returns the natural logarithm of the Gamma function.

Category: Mathematical

Syntax

LGAMMA(argument)

Required Argument

argument

specifies a numeric constant, variable, or expression.

Range must be positive.

Example

The following SAS statements produce these results.
SAS Statement
Result
x=lgamma(2);
0
x=lgamma(1.5);
-0.120782238