The function takes in numerical inputs and doubles or halves the input value, depending on whether the input is positive or negative.

