Difference between revisions of "Manuals/calci/FACT"

From ZCubes Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=FACT(N)=
+
<div style="font-size:30px">'''FACT(Number)'''</div><br/>
 
+
*<math>Number</math> is a positive integer whose factorial is to be found.
*where, <math>N</math> is a non-negative number 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>.
 
  
 
== Description ==
 
== Description ==
  
FACT(N)
+
FACT(Number)
  
 
e.g. FACT(3) displays '''6''' as a result.
 
e.g. FACT(3) displays '''6''' as a result.
Line 15: Line 13:
 
<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>Number</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>Number</math> is not an integer, it is truncated to calculate the factorial.
 +
*If <math>Number</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'''.
Line 35: Line 34:
 
|- class="even"
 
|- class="even"
 
| class="sshl_f" |FACT(4.7)
 
| class="sshl_f" |FACT(4.7)
| class="sshl_f" |24
+
| class="sshl_f" |72.52763452022295
  
 
|- class="odd"
 
|- class="odd"
Line 45: Line 44:
 
| class="sshl_f" |1
 
| class="sshl_f" |1
 
|}
 
|}
 +
 +
==Related Videos==
 +
 +
{{#ev:youtube|__P3061XGrk|280|center|FACTORIAL}}
  
 
== See Also ==
 
== See Also ==
Line 53: Line 56:
  
 
*[http://en.wikipedia.org/wiki/Factorial Factorial]
 
*[http://en.wikipedia.org/wiki/Factorial Factorial]
 +
 +
 +
 +
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 05:23, 14 April 2022

FACT(Number)


  • is a positive integer whose factorial is to be found.
    • FACT() calculates the factorial of a number as 1*2*.....*.

Description

FACT(Number)

e.g. FACT(3) displays 6 as a result.

  • The factorial of a number is the product of all positive integers, less than or equal to . It is calculated as -

  • If is negative, Calci displays #N/A error message.
  • If is not an integer, it is truncated to calculate the factorial.
  • If is invalid, Calci displays #NULL error message.
  • 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) 72.52763452022295
FACT(0) 1
FACT(1.1) 1

Related Videos

FACTORIAL

See Also

References