FACT Function


Computes a factorial

Category: Mathematical

Syntax

FACT ( n )

Arguments

n

  • is an integer that represents the number of elements for which the factorial is computed.

Details

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.

Examples

SAS Statements

Results

x=fact(5);

120

See Also

Functions:

  • 'COMB Function' on page 444

  • 'PERM Function' on page 714




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net