The function f(x) outputs 1 when the input is within the interval [-1, 1], and 0 otherwise.

