# Gamma function

Gamma function: gamma(n) is (n - 1)! for a whole number n.

## How to write it

### gamma(z)

**z**

A number, possibly complex. Takes an expression.

## Examples

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

  `gamma(5)`

  In the solver, `gamma(5)` gives `24`.

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

## Related functions

- [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.
- [log_gamma](https://hilberon.com/library/log_gamma)

  Logarithm of the gamma function.
- [gegenbauer_c](https://hilberon.com/library/gegenbauer_c)

  Gegenbauer polynomial.
- [fresnel_s](https://hilberon.com/library/fresnel_s)

  Fresnel sine integral.
- [gudermannian](https://hilberon.com/library/gudermannian)

  Gudermannian function.
- [fresnel_c](https://hilberon.com/library/fresnel_c)

  Fresnel cosine integral C(x).

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