This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Logarithm of gamma function


Y = gammaln(A)


Y = gammaln(A) returns the logarithm of the gamma function, gammaln(A) = log(gamma(A)). Input A must be nonnegative and real. The gammaln command avoids the underflow and overflow that may occur if it is computed directly using log(gamma(A)).

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced before R2006a

Was this topic helpful?