The function takes a single numerical input and returns a value that is twice the input, except for negative inputs, which return a value that is three times the input.

