The function f(x) takes a numerical input x and returns -1 for negative values of x and 1 for positive values of x.

