Returns the factorial of a positive integer.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static double Factorial(
int n
)
Public Shared Function Factorial (
n As Integer
) As Double
public:
static double Factorial(
int n
)
static member Factorial :
n : int -> float
Parameters
- n
- Type: SystemInt32
A positive integer.
Return Value
Type:
DoubleThe factorial of the integer.
The factorial of a number n
is the product of all integers from one up to and including
n.
Reference