# Heaviside step function (heaviside_theta)

Heaviside step function: 0 below zero and 1 above it.

## How to write it

### heaviside_theta(x)

**x**

The argument. Takes an expression.

## Examples

- $\displaystyle \theta(1) = 1$

  `heaviside_theta(1)`

  In the solver, `heaviside_theta(1)` gives `1`.

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

## Related functions

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

  Hermite polynomial.
- [gudermannian](https://hilberon.com/library/gudermannian)

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

  Biconfluent Heun function: the solution of the biconfluent Heun equation that is 1 at zero.
- [gegenbauer_c](https://hilberon.com/library/gegenbauer_c)

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

  Derivative of heun_b with respect to z; diff of heun_b writes it this way.
- [gamma](https://hilberon.com/library/gamma)

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

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