🔢 Factorial Calculator
Calculate n! for 0 ≤ n ≤ 170
Related Calculators
Factorial Calculator Guide
The Factorial Calculator quickly computes the factorial of a positive integer n, denoted n!. A factorial is the product of all positive integers less than or equal to n. This tool supports the range 0 to 170 (limited by JavaScript floating-point precision) and automatically displays large results in scientific notation.
Factorial is a fundamental concept in combinatorics, with important applications in permutations and combinations, probability and statistics, Taylor series expansion, and more. Understanding factorial concepts and properties is a necessary foundation for studying advanced mathematics. This tool also provides a quick reference table of common factorial values.
Definition and Properties of Factorial
【Definition】n! = n × (n-1) × (n-2) × ... × 2 × 1 【Special Values】0! = 1 (by convention), 1! = 1 【Recurrence】n! = n × (n-1)! 【Growth Rate】Factorial grows faster than exponential functions (Stirling's approximation) 【Stirling's Formula】n! ≈ √(2πn) × (n/e)^n 【Range Limit】JavaScript double precision can accurately represent up to 170!
Practical Examples
Important Notes
Application Scenarios
- - Permutations and combinations: P(n,r)=n!/(n-r)! for permutation count
- - Probability theory: Core component of binomial distribution, Poisson distribution formulas
- - Taylor series: Power series expansions of e^x, sin(x), cos(x) include factorial terms
- - Statistics: Multinomial coefficients, hypergeometric distribution calculations
- - Cryptography: Large number operations in RSA encryption key generation
Factorial and the Gamma Function
Factorial can be extended to non-integer values through the Gamma function Γ(n). For positive integers n, the relationship is: Γ(n) = (n-1)!. The Gamma function is also defined on the complex plane and is an important special function in mathematical analysis.
Some useful fractional factorial values (via the Gamma function): (1/2)! = Γ(3/2) = √π/2 ≈ 0.886 This result appears in the probability density function of the normal distribution, reflecting the connection between factorial concepts and continuous mathematics.