# Log-gamma function (log_gamma)

Logarithm of the gamma function.

## How to write it

### log_gamma(z)

**z**

A number, possibly complex. Takes an expression.

## Examples

- $\displaystyle \ln\Gamma(5) = \ln(24)$

  `log_gamma(5)`

  In the solver, `log_gamma(5)` gives `ln(24)`.

  [Open in the solver](https://hilberon.com/?q=log_gamma%285%29)

## Related functions

- [log_integral](https://hilberon.com/library/log_integral)

  Logarithmic integral li(x).
- [product_log](https://hilberon.com/library/product_log)

  Lambert W function on its principal branch, also called the product logarithm.
- [stieltjes_gamma](https://hilberon.com/library/stieltjes_gamma)

  Stieltjes constant: the n-th one appears in the Laurent series of the zeta function at 1.
- [gamma](https://hilberon.com/library/gamma)

  Gamma function: gamma(n) is (n - 1)! for a whole number n.
- [lerch_phi](https://hilberon.com/library/lerch_phi)

  Lerch transcendent: the sum of z^k / (k + a)^s over k from 0.
- [parabolic_cylinder_d](https://hilberon.com/library/parabolic_cylinder_d)

  Parabolic cylinder function D.

---
Source: https://hilberon.com/library/log_gamma
