AdvancedIntegerMathDoubleFactorial Method |
Computes the double factorial of the given integer.
Namespace:
Meta.Numerics.Functions
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public static double DoubleFactorial(
int n
)
Public Shared Function DoubleFactorial (
n As Integer
) As Double
public:
static double DoubleFactorial(
int n
)
static member DoubleFactorial :
n : int -> float
Parameters
- n
- Type: SystemInt32
The argument, which must be positive.
Return Value
Type:
DoubleThe value of n!!.
Exceptions Remarks The double factorial of an integer is the product all integers of the same parity, up to and including the integer.
Thus 5! = 5 * 3 * 1 = 15 and 6! = 6 * 4 * 2 = 48.
See Also