The domain of the function is between [-128 and 128]. The interval where the function displays unexpected behavior seems to be between -1 and 1.

