IMSL C# Numerical Library

Sfun.Fact Method 

Returns the factorial of an integer.

public static double Fact(
   int n
);

Parameters

n
An int value.

Return Value

A double value specifying the factorial of n, n!. If x is negative, the result is NaN.

See Also

Sfun Class | Imsl.Math Namespace