AdvancedIntegerMathLogFactorial Method

Computes the logarithm of the factorial of an integer.

Definition

Namespace: Meta.Numerics.Functions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static double LogFactorial(
	int n
)

Parameters

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

Return Value

Double
The value of ln(n!).

Remarks

This function provides accurate values of ln(n!) even for values of n which would cause n! to overflow.

Exceptions

See Also