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

