Special.Factorial 2 Method
Returns the double factorial of a positive integer.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
The double factorial of n.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public static double Factorial2(
int n
)
Parameters
- n Int32
- A positive integer.
Return Value
DoubleThe 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
Overflow | the result is too large. |
Argument | n is less than zero. |