The function f(x) takes a single input value x and either returns the same value or multiplies it by 2.

