The function f(x) returns 1 when the input x is 0 or -1, and returns 0 for all other inputs.

