Difference between revisions of "Manuals/calci/FACT"
| Line 13: | Line 13: | ||
*The factorial of a number <math>N</math> is the product of all positive integers, less than or equal to <math>N</math>. It is calculated as - | *The factorial of a number <math>N</math> is the product of all positive integers, less than or equal to <math>N</math>. It is calculated as - | ||
| − | <math>N! = N | + | <math>N! = N * (N-1) * (N-2) * ..... 1</math> |
*<math>N</math> should be a positive integer. Else Calci displays #N/A error message. | *<math>N</math> should be a positive integer. Else Calci displays #N/A error message. | ||
Revision as of 16:59, 11 January 2014
FACT(N)
- where, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N} is a non-negative number whose factorial is to be found.
FACT() calculates the factorial of a number Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N} as 1*2*.....*Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N} .
Description
FACT(N)
e.g. FACT(3) displays 6 as a result.
- The factorial of a number Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N} is the product of all positive integers, less than or equal to Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N} . It is calculated as -
Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle N!=N*(N-1)*(N-2)*.....1}
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N} should be a positive integer. Else Calci displays #N/A error message.
- If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N} 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 |