The function f(x) takes a numerical input x and returns a value that is roughly 2x when the input is positive, and roughly 2 times the absolute value of the input when the input is negative.

