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

