UnitStep

Heaviside step function (WMA link)


UnitStep[x]

return 0 if x < 0, and 1 if x >= 0.

UnitStep[$x_1$, $x_2$, ...]

return the multidimensional unit step function which is 1 only if none of the xi are negative.

Evaluation numerically:

We can use UnitStep on irrational numbers and infinities:

Plot in one dimension:

Sign