Difference between revisions of "Manuals/calci/FACTDOUBLE"
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | =FACTDOUBLE( | + | <div style="font-size:30px">'''FACTDOUBLE(Number)'''</div><br/> |
| + | *<math>Number</math> is a positive integer whose double factorial is to be found. | ||
| + | **FACTDOUBLE(), returns the double factorial of a number. | ||
| − | |||
| − | |||
| − | |||
== Description == | == Description == | ||
| − | FACTDOUBLE( | + | FACTDOUBLE(Number) |
e.g. FACTDOUBLE(6) displays '''48''' as a result. | e.g. FACTDOUBLE(6) displays '''48''' as a result. | ||
| − | *<math> | + | *<math>Number</math> should be a positive integer. |
*The factorial of an even number is calculated as - | *The factorial of an even number is calculated as - | ||
| Line 18: | Line 17: | ||
<math>N!! = N * (N-2) * (N-4) * .....3 * 1</math> | <math>N!! = N * (N-2) * (N-4) * .....3 * 1</math> | ||
| − | *If <math> | + | *If <math>Number</math> is negative, Calci displays #N/A error message. |
| − | *If <math> | + | *If <math>Number</math> is not an integer, it is truncated to calculate the double factorial. |
| − | *If <math> | + | *If <math>Number</math> is invalid, Calci displays #NULL error message. |
*The double factorial of series of numbers can be calculated as - | *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'''. | e.g. FACTDOUBLE(1..5) calculates double factorial of numbers from 1 to 5 and displays result as '''1 2 3 8 15'''. | ||
| Line 52: | Line 51: | ||
==Related Videos== | ==Related Videos== | ||
| − | {{#ev:youtube| | + | {{#ev:youtube|v=XbFpuC86ouQ|280|center|FACTDOUBLE}} |
== See Also == | == See Also == | ||
| Line 61: | Line 60: | ||
*[http://en.wikipedia.org/wiki/Double_factorial Double Factorial] | *[http://en.wikipedia.org/wiki/Double_factorial Double Factorial] | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | *[[Z_API_Functions | List of Main Z Functions]] | ||
| + | |||
| + | *[[ Z3 | Z3 home ]] | ||
Latest revision as of 14:51, 20 November 2018
FACTDOUBLE(Number)
- is a positive integer whose double factorial is to be found.
- FACTDOUBLE(), returns the double factorial of a number.
Description
FACTDOUBLE(Number)
e.g. FACTDOUBLE(6) displays 48 as a result.
- should be a positive integer.
- The factorial of an even number is calculated as -
- The factorial of an odd number is calculated as -
- If is negative, Calci displays #N/A error message.
- If is not an integer, it is truncated to calculate the double factorial.
- If 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 |
Related Videos
See Also
References