heavyside

Calculates the Heaviside step function for an argument x. Depending on input, function can return scalar, vector, matrix or complex number.

Arguments

  1. Real value x

Output

Integer value 0 or 1

Examples

heavyside