gamma
Gamma 函数
说明
示例
输入参数
局限性
对于
double
和single
数据类型,对于所有大于realmax
和realmax('single')
的值,gamma
函数返回Inf
。正整数的饱和阈值为gamma(172)
和gamma(single(36))
,其中计算的gamma
函数大于最大可表示值。
详细信息
算法
gamma
的计算基于 [1] 中介绍的算法。
参考
[1] Cody, J., An Overview of Software Development for Special Functions, Lecture Notes in Mathematics, 506, Numerical Analysis Dundee, G. A. Watson (ed.), Springer Verlag, Berlin, 1976.
[2] Abramowitz, M. and I.A. Stegun, Handbook of Mathematical Functions, National Bureau of Standards, Applied Math. Series #55, Dover Publications, 1965, sec. 6.5.
扩展功能
版本历史记录
在 R2006a 之前推出
另请参阅
gammainc
| gammaincinv
| gammaln
| psi
| factorial