Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

gamma

Gamma function

Syntax

Y = gamma(X)

Description

Y = gamma(X) returns the gamma function at the elements of X. X must be real.

More About

collapse all

Gamma Function

The gamma function is defined by the integral:

Γ(x)=0ettx1dt

The gamma function interpolates the factorial function. For integer n:

gamma(n+1) = n! = prod(1:n)

Tall Array Support

This function fully supports tall arrays. For more information, see Tall Arrays.

Algorithms

The computation of gamma is based on algorithms outlined in [1]. Several different minimax rational approximations are used depending upon the value of A.

References

[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.

Introduced before R2006a

Was this topic helpful?