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

