The function appears to be performing a multiplication operation with a scaling factor of 2, except within the interval -1 to 1, where it performs a different operation.

