Difference between revisions of "Manuals/calci/FACTDOUBLE"
| Line 47: | Line 47: | ||
|- class="even" | |- class="even" | ||
| class="sshl_f" |FACTDOUBLE(8) | | class="sshl_f" |FACTDOUBLE(8) | ||
| − | | class="sshl_f" | | + | | class="sshl_f" |384 |
|} | |} | ||
Revision as of 13:57, 27 August 2015
FACTDOUBLE(N)
- where, is a positive integer whose double factorial is to be found.
FACTDOUBLE() calculates the double factorial of a number.
Description
FACTDOUBLE(N)
e.g. FACTDOUBLE(6) displays 48 as a result.
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N} should be a positive integer.
- The factorial of an even number is calculated as -
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N!! = N * (N-2) * (N-4) * .....4 * 2}
- The factorial of an odd number is calculated as -
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N!! = N * (N-2) * (N-4) * .....3 * 1}
- If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N} is negative, Calci displays #N/A error message.
- If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N} is not an integer, it is truncated to calculate the double factorial.
- If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N} is invalid, Calci displays #NULL error message.
- The double factorial of series of numbers can be calculated as -
e.g. FACTDOUBLE(1..5) calculates double factorial of numbers from 1 to 5 and displays result as 1 2 3 8 15.
Examples
| Function | Output |
| FACTDOUBLE(7) | 105 |
| FACTDOUBLE(0) | 1 |
| FACTDOUBLE(4.2) | 8 |
| FACTDOUBLE(8) | 384 |