The function f(x) scales the input x by a factor of 2 for positive values and a factor of -2 for negative values.

