The Heaviside function: Heaviside

### 5.8.9 The Heaviside function: Heaviside

The Heaviside function is the step function

H(x) = |
⎧ ⎨ ⎩ |
0 | for x < 0
1 | for x≥ 0

The Heaviside command computes the Heaviside function.

- Heaviside takes one argument:
  x, a real number.
- Heaviside(x) returns the value of the Heaviside function H(x).

#### Examples

- Input:
  Heaviside(2)
  Output:

  1

- Input:
  Heaviside(-4)
  Output:

  0