AdvancedIntegerMathLogFactorial Method |
Computes the logarithm of the factorial of an integer.
Namespace:
Meta.Numerics.Functions
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public static double LogFactorial(
int n
)
Public Shared Function LogFactorial (
n As Integer
) As Double
public:
static double LogFactorial(
int n
)
static member LogFactorial :
n : int -> float
Parameters
- n
- Type: SystemInt32
The argument, which must be non-negative.
Return Value
Type:
DoubleThe value of ln(n!).
Exceptions Remarks This function provides accurate values of ln(n!) even for values of n which would cause n! to overflow.
See Also