The function f(x) takes a numerical input x and doubles it.
