Back to Symbolic Math (SymEngine)
sym.loggamma
Computes the log-gamma function of a symbolic expression.
Syntax
sym.loggamma(x)
Description
Computes the log-gamma function of a symbolic expression. The log-gamma function is defined as log(Γ(x)), which is useful for numerical computation when Γ(x) would overflow, and for computing ratios of gamma functions.
Parameters
| Name | Description |
|---|---|
| x | - The argument (as a symbolic expression). |
Returns
Expr