Returns n!, the number of ways that n objects can be permuted.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public static double Factorial(
	int n
)
Visual Basic (Declaration)
Public Shared Function Factorial ( _
	n As Integer _
) As Double
Visual C++
public:
static double Factorial(
	int n
)

Parameters

n
Type: System..::.Int32
The number of objects.

Return Value

n!

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentException Thrown if n is not positive.

See Also