Stirling's Approximation
Stirling's formula approximates the factorial of a large number with relative error about . It is used to estimate large factorials and binomial coefficients, in statistical mechanics style counting and in asymptotic analysis.
LaTeX
n!\approx\sqrt{2\pi n}\left(\frac ne\right)^nVariables
- positive integer (large)
- Euler's number ≈ 2.71828
Example
Estimate .
- , .
- Product ; the exact value is .
Answer: , about low.