The function f(x) takes a numerical input and multiplies it by 2 if it is a positive integer, and multiplies it by -2 if it is a negative integer.

