The function f(x) takes a numerical input x and returns a value that is either double the input value if x is positive, or negative twice the input value if x is negative.
