The function takes a real number as input and returns the result of multiplying that number by 2, unless the input is between -4 and 4, in which case the function returns the result of mapping the input to a power of 2.

