This function implements Heaviside step function

heaviside(x, a = 0)

Arguments

x

Object to be evaluated

a

Frontier value