Open main menu
Home
Random
Log in
Settings
About ZCubes Wiki
Disclaimers
ZCubes Wiki
Search
Changes
← Older edit
Newer edit →
Manuals/calci/FACT
(view source)
Revision as of 23:37, 11 January 2014
45 bytes added
,
23:37, 11 January 2014
no edit summary
Line 1:
Line 1:
=FACT(N)=
=FACT(N)=
−
*where, <math>N</math> is a
non-negative number
whose factorial is to be found.
+
*where, <math>N</math> is a
positive integer
whose factorial is to be found.
FACT() calculates the factorial of a number <math>N</math> as 1*2*.....*<math>N</math>.
FACT() calculates the factorial of a number <math>N</math> as 1*2*.....*<math>N</math>.
Line 15:
Line 15:
<math>N! = N * (N-1) * (N-2) * ..... 1</math>
<math>N! = N * (N-1) * (N-2) * ..... 1</math>
−
*<math>N</math>
should be a positive integer. Else
Calci displays #N/A error message.
+
*
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 factorial.
*If <math>N</math> is not an integer, it is truncated to calculate the factorial.
+
*If <math>N</math> is invalid, Calci displays #NULL error message.
*The factorial of series of numbers can be calculated as -
*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'''.
e.g. FACT(1..5) calculates factorial of numbers from 1 to 5 and displays result as '''1 2 6 24 120'''.
Swapna
writer
2,661
edits