heaviside(x) = 1 if x > 0, and heaviside(x) = 0 otherwise. heaviside is the Heaviside unit step function.