n! = n × (n−1) × … × 1
Factorial Calculate
📐 计算公式
阶乘(本页代码口径):n!=1×2×…×n 用 BigInt 精确累乘。联动量:科学计数值、完整精确整数(千分位)、ln(n!)、几何平均 (n!)^(1÷n)。校验:n 必须为非负整数,空值、小数、负数报错;为控制页面体量上限 1000,并用 BigInt 精确计算;n=0 时 0!=1,几何平均无定义显示「—」。判据:无固定分级,n! 增长快于指数;科学计数与完整整数分开展示,避免把浮点近似值冒充精确值。
非负整数的阶乘,0! = 1。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Factorial | n! = n · (n-1) · ... · 1, with the convention 0! = 1 | ISO 80000-2:2019, Quantities and units - Part 2: Mathematics |
| Recurrence | n! = n · (n-1)! | ISO 80000-2:2019, Quantities and units - Part 2: Mathematics |
| Stirling approximation | n! ≈ sqrt(2·pi·n) · (n/e)^n | Stirling J., Methodus Differentialis (1730) |
| Relation to the gamma function | Gamma(n + 1) = n!, extending the factorial to non-integer arguments | NIST Digital Library of Mathematical Functions §5.2 |
📌 计算说明
- 0! = 1。
- 10! = 3,628,800。