Previous Up Next

5.9.9  The Heaviside function: Heaviside

The Heaviside command takes as argument a real number.
Heaviside returns the value of the Heaviside function; namely 0 if the input is negative, 1 otherwise.
Input:

Heaviside(2)

Output:

1

Input:

Heaviside(-4)

Output:

0

Previous Up Next