Wiki
Calculator
-- Make calculations easier!
Tweet
Print
Home
>
Math
>
Algebra
> Factorial of a non-negative integer n
Factorial of a non-negative integer n
Formula
R
factorial of n
n
a non-negative integer
Formula description
In mathematics, The factorial function is formally defined and denoted by n!(n is non-negative integer n). As n grows, the factorial n! becomes larger than all polynomials and exponential functions
Calculator (
how to use calculator?
)
n
R
Precision
0
1
2
3
4
5
6
7
8
9
Formula code
C
C#
C++
Java
JavaScript
LaTeX
PHP
int R = 1; for(int i= n;i>0;i--) { R = R*i; }
int R = 1; for(int i= n;i>0;i--) { R = R*i; }
int R = 1; for(int i= n;i>0;i--) { R = R*i; }
int R = 1; for(int i= n;i>0;i--) { R = R*i; }
var R = 1; for(var i= n;i>0;i--) { R = R*i; }
R = n! = 1\times 2 \times 3 \times \cdots \times n=\prod_{k=1}^n k \!
$R = 1; for($i= $n;$i>0;$i--) { $R = $R*$i; }
References
wikipedia: Factorial.
Comment or add more code
If you cannot find the formula or calculator you want, please tell us what you want and we will add it for you ASAP. If you want anything else or find any error on this page, please just let us know. If you know the formula in other languages, you are welcome to add it. Thanks for contributing to wikicalculator.com!
Comment
Add code for the formula
Please help us do better by providing your opinions(<= 500 characters):
Language:
(<= 500 characters)
Name
Email
Home Page