GAMMA 函数
约 250 字小于 1 分钟
适用范围
Microsoft 365 专属 Excel, Microsoft 365 Mac 版专属 Excel, Excel 网页版, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016
1. 函数简介
GAMMA 函数返回伽玛函数值。伽玛函数是阶乘函数的扩展,对于正整数 n,GAMMA(n) = (n-1)!。对于非整数值,伽玛函数也有定义。
2. 语法
GAMMA(number)| 参数 | 选填 | 说明 |
|---|---|---|
| number | 必需 | 要计算伽玛函数值的数值。 |
3. 示例
3.1. 计算伽玛函数值
=GAMMA(2.5)返回 1.3293。
3.2. 计算整数的伽玛值
=GAMMA(5)返回 24(即 4!)。
4. 实用技巧
4.1. number 不能为零或负整数
number 不能为零或负整数,否则返回 #NUM! 错误。
4.2. 如果 number 为非数值型
如果 number 为非数值型,返回 #VALUE! 错误。
4.3. GAMMA(n) = (n-1)! 对于正整数 n 成立
GAMMA(n) = (n-1)! 对于正整数 n 成立。