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.

라이선스가 부여된 사용자만 번역 문서를 볼 수 있습니다. 번역 문서를 보려면 로그인하십시오.

gammainc

Incomplete gamma function

Syntax

Y = gammainc(X,A)
Y = gammainc(X,A,tail)
Y = gammainc(X,A,'scaledlower')
Y = gammainc(X,A,'scaledupper')

Description

Y = gammainc(X,A) returns the incomplete gamma function of corresponding elements of X and A. The elements of A must be nonnegative. Furthermore, X and A must be real and the same size (or either can be scalar).

Y = gammainc(X,A,tail) specifies the tail of the incomplete gamma function. The choices for tail are 'lower' (the default) and 'upper'. The upper incomplete gamma function is defined as:

gammainc(x,a,'upper')=1Γ(a)xta1etdt

When the upper tail value is close to 0, the 'upper' option provides a way to compute that value more accurately than by subtracting the lower tail value from 1.

Y = gammainc(X,A,'scaledlower') and Y = gammainc(X,A,'scaledupper') return the incomplete gamma function, scaled by

Γ(a+1)(exxa).

These functions are unbounded above, but are useful for values of X and A where gammainc(X,A,'lower') or gammainc(X,A,'upper') underflow to zero.

    Note:   When X is negative, Y can be inaccurate for abs(X)>A+1. This applies to all syntaxes.

More About

collapse all

Incomplete Gamma Function

The incomplete gamma function is

gammainc(x,a)=1Γ(a)0xta1etdt

where Γ(a) is the gamma function, gamma(a).

For any A ≥ 0, gammainc(X,A) approaches 1 as X approaches infinity. For small X and A, gammainc(X,A) is approximately equal to X^A, so gammainc(0,0) = 1.

Tall Array Support

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

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?