Difference between revisions of "Manuals/calci/FACTDOUBLE"
Jump to navigation
Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="4SpaceContent" align="left"><div class="ZEditBox" align=...") |
|||
| Line 1: | Line 1: | ||
| − | + | =FACTDOUBLE(N)= | |
| − | + | *where, <math>N</math> 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. | |
| − | < | + | *<math>N</math> should be a positive integer. |
| − | - | + | *The factorial of an even number is calculated as - |
| − | |||
| − | |||
| − | |||
| − | < | + | <math>N!! = N * (N-2) * (N-4) * .....4 * 2</math> |
| + | *The factorial of an odd number is calculated as - | ||
| − | < | + | <math>N!! = N * (N-2) * (N-4) * .....3 * 1</math> |
| − | -- | + | *If <math>N</math> is negative, Calci displays #N/A error message. |
| − | + | *If <math>N</math> is not an integer, it is truncated to calculate the double factorial. | |
| − | + | *If <math>N</math> 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 == | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
<div id="6SpaceContent" class="zcontent" align="left"> | <div id="6SpaceContent" class="zcontent" align="left"> | ||
{| id="TABLE3" class="SpreadSheet blue" | {| id="TABLE3" class="SpreadSheet blue" | ||
|- class="even" | |- class="even" | ||
| − | + | | class=" " | '''Function''' | |
| − | + | | class=" " | '''Output''' | |
| − | + | ||
| − | | class=" " | | ||
| − | | class=" " | | ||
| − | |||
|- class="odd" | |- class="odd" | ||
| − | + | | class="sshl_f" |FACTDOUBLE(7) | |
| − | + | | class="sshl_f" |105 | |
| − | | class="sshl_f" | | + | |
| − | | class="sshl_f" | | ||
| − | |||
|- class="even" | |- class="even" | ||
| − | + | | class="sshl_f" |FACTDOUBLE(0) | |
| − | | class="sshl_f" | | + | | class="sshl_f" |1 |
| − | | class="sshl_f | + | |
| − | |||
| − | |||
| − | |||
|- class="odd" | |- class="odd" | ||
| − | + | | class="sshl_f" |FACTDOUBLE(4.2) | |
| − | + | | class="sshl_f" |8 | |
| − | + | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | class="sshl_f" | | ||
| − | | class="sshl_f" | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|- class="even" | |- class="even" | ||
| − | + | | class="sshl_f" |FACTDOUBLE(8) | |
| − | + | | class="sshl_f" |84 | |
| − | |||
| − | | class="sshl_f" | | ||
| − | | class="sshl_f" | | ||
|} | |} | ||
| − | + | == See Also == | |
| − | + | ||
| − | + | *[[Manuals/calci/FACT | FACT]] | |
| + | |||
| + | ==References== | ||
| + | |||
| + | *[http://en.wikipedia.org/wiki/Double_factorial Double Factorial] | ||
Revision as of 17:39, 11 January 2014
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.
- 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) | 84 |