The function f(x) takes a numerical input and returns its absolute value, except when the input is within the interval [-10, 10], where it returns the input value times 2.

