The function takes a numerical input and returns a value that is twice the input, unless the input is negative, in which case the output is negative.

