Special.LogFactorial2 Method

Returns the natural logarithm of the double factorial of a positive integer.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public static double LogFactorial2(
	int n
)

Parameters

n  Int32
A positive integer.

Return Value

Double
The natural logarithm of the double factorial of n.

Remarks

The double factorial of a number n is the product of every second integer up to and including n.

Exceptions

OverflowException

the result is too large.

ArgumentOutOfRangeException

n is less than zero.

See Also