Commands by Category:
Index:
Computes the natural log of the gamma function.
lngamma
x (NxK matrix or N-dimensional array) – all elements must be positive.
y (NxK matrix) – containing the natural log of the gamma function of each of the elements in x.
x = { 4, 8 }; y = lngamma(x);
y = 1.7917595 8.5251614
The relation between lngamma() and lnfact() is:
lngamma()
lnfact()
lngamma(x) = lnfact(x - 1);
See also
Functions gamma(), lnfact()
gamma()
previous
lnfact
next
lngammacplx