The function takes a numerical input and returns either twice the input or half the input, depending on whether the input is positive or negative.

