The function takes a numerical input x and multiplies it by a constant value (either 0.5 or 2.0) depending on the value of x.

