The function f(x) takes a numerical input x and returns x multiplied by 2, except when x is 0, in which case the output is 0.

