The function takes a numerical input and returns a value that is either 2 or 3 times the input value, depending on whether the input is positive or negative.

