# unit_step function

Unit step: 0 below zero and 1 from zero up.

## How to write it

### unit_step(x)

**x**

The argument. Takes an expression.

## Examples

- $\displaystyle \operatorname{unit\_step}(1) = 1$

  `unit_step(1)`

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

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

## Related functions

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

  Weierstrass elliptic function with the invariants g2 and g3.
- [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.
- [whittaker_m](https://hilberon.com/library/whittaker_m)

  Whittaker function M.
- [spherical_bessel_y](https://hilberon.com/library/spherical_bessel_y)

  Spherical Bessel function of the second kind.
- [zeta](https://hilberon.com/library/zeta)

  Riemann zeta function.
- [spherical_bessel_j](https://hilberon.com/library/spherical_bessel_j)

  Spherical Bessel function of the first kind.

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