FactDouble
Description
This function is used to calculate the double factorial of a non-negative integer n, denoted by:
Please note that, to avoid overflow, the biggest integer can be specified is 299, if bigger than 299, this function will return missing value directly.
Syntax
double FactDouble(int n)
Parameters
n
- The non-negative number for calculating double factorial.
Return
Return the double factorial of the specified number.
Example
factdouble(5) = ; // 5*3*1=15 factdouble(6) = ; // 6*4*2=48 factdouble(0) = ; // 1 factdouble(1) = ; // 1
/math-9b4e1717c381756a6c59ce7c38bc94e3.png)