The function f(x) takes a numerical input and returns its square if positive, and the negative of its square if negative.

