Difference between revisions of "Manuals/calci/FACT"

From ZCubes Wiki
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:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
=FACT(N)=
  
Syntax
+
*where, <math>N</math> is a non-negative number whose factorial is to be found.
  
</div></div>
+
FACT() calculates the factorial of a number '''N''' as 1*2*.....*N.
----
 
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples
+
== Description ==
  
</div></div>
+
FACT(N)
----
 
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
 
----
 
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
  
<font size="5">Description</font>
+
e.g. FACT(3) displays '''6''' as a result.
  
</div></div>
+
*The factorial of a number '''N''' is the product of all positive integers, less than or equal to '''N'''. It is calculated as -
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman"> <font size="6">FACT</font> </font>'''</div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><br /><div id="7Space" class="gamizbox" title="7Space"><div id="7SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="7SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="7SpaceRollupContent" align="center"></span></span></div><div id="7SpaceCover"><div id="7SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="3"><font face="Times New Roman"> '''FACT''' ('''N''')
 
  
Where N is the nonnegative number to which factorial is to be done.
+
<math>N! = N X (N-1) X (N-2) X ..... 1</MATH>
  
</font></font></div></div>
+
*<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.
<div id="14SpaceContent" class="zcontent" align="left"><br /><br /><br /><div id="5Space" class="gamizbox" title="5Space"><div id="5SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="5SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="5SpaceRollupContent" align="center"></span></span></div><div id="5SpaceCover"><div id="5SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">
+
*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'''.
  
It calculates the factorial of a number which is equal to 1*2*3….
+
== Examples ==
  
</div></div>
 
----
 
<div id="12SpaceContent" class="zcontent" align="left"><br /><br /><br /><div id="9Space" class="gamizbox" title="9Space"><div id="9SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="9SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="9SpaceRollupContent" align="center"></span></span></div><div id="9SpaceCover"><div id="9SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="3"><font face="Times New Roman"> 
 
 
Lets see an example in (Column1, Row 1)
 
 
FACT (N)
 
 
FACT (C1R1)''''''
 
 
That is FACT (2.5) is 2
 
 
</font></font></div></div>
 
----
 
 
<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="  " |
+
| class="  " | '''Function'''
<div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
+
| class="  " | '''Output'''
| Column1
+
 
| class="  " | Column2
 
| class="  " | Column3
 
| class="  " | Column4
 
 
|- class="odd"
 
|- class="odd"
| class=" " | Row1
+
| class="sshl_f" |FACT(6)
| class="sshl_f" | 2.5
+
| class="sshl_f" |720
| class="sshl_f" | 2
+
 
| class="sshl_f" |
 
| class="sshl_f" |
 
 
|- class="even"
 
|- class="even"
| class="  " | Row2
+
| class="sshl_f" |FACT(4.7)
| class="sshl_f" |
+
| class="sshl_f" |24
| class="sshl_f SelectTD SelectTD" |
+
 
<div id="6Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| class="sshl_f" |
 
| class="sshl_f" |
 
 
|- class="odd"
 
|- class="odd"
| Row3
+
| class="sshl_f" |FACT(0)
| class="sshl_f" |
+
| class="sshl_f" |1
| class="sshl_f" |
+
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| Row4
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="odd"
 
| class=" " | Row5
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
 
|- class="even"
 
|- class="even"
| Row6
+
| class="sshl_f" |FACT(1.1)
| class="sshl_f" |
+
| class="sshl_f" |1
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
 
|}
 
|}
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
== See Also ==
----
+
 
</div></div></div></div></div></div></div></div></div>
+
*[[Manuals/calci/FACTDOUBLE | FACTDOUBLE]]
 +
 
 +
==References==
 +
 
 +
*[http://en.wikipedia.org/wiki/Factorial Factorial]

Revision as of 17: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

See Also

References