Computes a factorial
Category: Mathematical
FACT ( n )
n
is an integer that represents the number of elements for which the factorial is computed.
The mathematical representation of the FACT function is given by the following equation:
with n ‰ 0.
If the expression cannot be computed, a missing value is returned.
SAS Statements | Results |
---|---|
x=fact(5); | 120 |
Functions:
'COMB Function' on page 444
'PERM Function' on page 714