Special.Log Factorial Method
Returns the natural logarithm of the factorial
of a positive integer.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
The natural logarithm of the factorial of the integer.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static double LogFactorial(
int n
)
Parameters
- n Int32
- A positive integer.
Return Value
DoubleThe natural logarithm of the factorial of the integer.
Remarks
The factorial of a number nis the product of all integers from one up to and including n.
Exceptions
Argument | n is less than zero. |