# Polygamma and digamma functions (polygamma)

Polygamma function: the n-th derivative of the digamma function.

## How to write it

### polygamma(n, z)

**n**

The order. Takes a whole number.

**z**

A number. Takes an expression.

### polygamma(z)

The digamma function, the derivative of log_gamma: polygamma of order 0.

**z**

A number. Takes an expression.

## Examples

- $\displaystyle \psi^{(1)}(1) = \frac{\pi^{2}}{6}$

  `polygamma(1, 1)`

  In the solver, `polygamma(1, 1)` gives `pi^2/6`.

  [Open in the solver](https://hilberon.com/?q=polygamma%281%2C%201%29)
- $\displaystyle \psi(1) = -\gamma$

  `polygamma(1)`

  In the solver, `polygamma(1)` gives `-euler_gamma`.

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

## Related functions

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

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

  Rising factorial: x (x + 1) ... (x + n - 1).
- [product_log](https://hilberon.com/library/product_log)

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

  Parabolic cylinder function D.
- [sin_integral](https://hilberon.com/library/sin_integral)

  Sine integral: the integral of sin(t)/t from 0 to x.
- [log_integral](https://hilberon.com/library/log_integral)

  Logarithmic integral li(x).

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