Computes the logrithm of the factorial of an integer.

Namespace:  Meta.Numerics.Functions
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

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

Parameters

n
Int32
The argument, which must be non-negative.

Return Value

The log factorial ln(n!).

Exceptions

ExceptionCondition
System..::.ArgumentOutOfRangeException n is negative.

See Also