Difference between revisions of "Manuals/calci/FACT"
Jump to navigation
Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="2SpaceContent" align="left"><div class="ZEditBox" align=...") |
|||
Line 1: | Line 1: | ||
− | + | =FACT(N)= | |
− | + | *where, <math>N</math> is a non-negative number whose factorial is to be found. | |
− | + | FACT() calculates the factorial of a number '''N''' as 1*2*.....*N. | |
− | |||
− | |||
− | + | == Description == | |
− | + | FACT(N) | |
− | |||
− | |||
− | |||
− | |||
− | + | e.g. FACT(3) displays '''6''' as a result. | |
− | + | *The factorial of a number '''N''' is the product of all positive integers, less than or equal to '''N'''. It is calculated as - | |
− | |||
− | |||
− | |||
− | |||
− | + | <math>N! = N X (N-1) X (N-2) X ..... 1</MATH> | |
− | < | + | *<math>N</math> should be a positive integer. Else Calci displays #NUM error message. |
− | + | *If <math>N</math> is not an integer, it is truncated to calculate the factorial. | |
− | + | *The factorial of series of numbers can be calculated as - | |
+ | e.g. FACT(1..5) calculates factorial of numbers from 1 to 5 and displays result as '''1 2 6 24 120'''. | ||
− | + | == 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" |FACT(6) | |
− | + | | class="sshl_f" |720 | |
− | | class="sshl_f" | | + | |
− | | class="sshl_f" | | ||
− | |||
|- class="even" | |- class="even" | ||
− | + | | class="sshl_f" |FACT(4.7) | |
− | + | | class="sshl_f" |24 | |
− | | class="sshl_f | + | |
− | |||
− | | class="sshl_f" | | ||
− | |||
|- class="odd" | |- class="odd" | ||
− | + | | class="sshl_f" |FACT(0) | |
− | + | | class="sshl_f" |1 | |
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | class="sshl_f" | | ||
− | | class="sshl_f" | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- class="even" | |- class="even" | ||
− | + | | class="sshl_f" |FACT(1.1) | |
− | + | | class="sshl_f" |1 | |
− | |||
− | | class="sshl_f" | | ||
− | | class="sshl_f" | | ||
|} | |} | ||
− | + | == See Also == | |
− | + | ||
− | + | *[[Manuals/calci/FACTDOUBLE | FACTDOUBLE]] | |
+ | |||
+ | ==References== | ||
+ | |||
+ | *[http://en.wikipedia.org/wiki/Factorial Factorial] |
Revision as of 16:54, 11 January 2014
FACT(N)
- where, is a non-negative number whose factorial is to be found.
FACT() calculates the factorial of a number N as 1*2*.....*N.
Description
FACT(N)
e.g. FACT(3) displays 6 as a result.
- The factorial of a number N is the product of all positive integers, less than or equal to N. It is calculated as -
- should be a positive integer. Else Calci displays #NUM error message.
- If is not an integer, it is truncated to calculate the factorial.
- The factorial of series of numbers can be calculated as -
e.g. FACT(1..5) calculates factorial of numbers from 1 to 5 and displays result as 1 2 6 24 120.
Examples
Function | Output |
FACT(6) | 720 |
FACT(4.7) | 24 |
FACT(0) | 1 |
FACT(1.1) | 1 |