scipy.special.gammaln¶
-
scipy.special.
gammaln
(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = <ufunc 'gammaln'>¶ Logarithm of the absolute value of the Gamma function.
- Parameters
- xarray-like
Values on the real line at which to compute
gammaln
- Returns
- gammalnndarray
Values of
gammaln
at x.
See also
Notes
When used in conjunction with
gammasgn
, this function is useful for working in logspace on the real axis without having to deal with complex numbers, via the relationexp(gammaln(x)) = gammasgn(x)*gamma(x)
.For complex-valued log-gamma, use
loggamma
instead ofgammaln
.