The function seems to be a combination of real and complex operations. For inputs within the interval [-128, 0), the function returns complex numbers with both real and imaginary parts. 
For inputs outside of this interval, the function returns real numbers.

