The function takes a single numerical input and returns a value that is twice the input, except when the input is negative, in which case the output is twice the absolute value of the input.

