Imaginary (Complex) Number Alert!
I have got a crazy result too. So what I have here is the same logic in different programming languages.
What I feel is, when the power is calculated, the resulting number is root of -1, which is an imaginary number. These programs cannot handle imaginary numbers is my guess.
The results are as follows:
C#
Math.Pow(-1.1, -1.1); // Returns NaN
Java Output
Math.pow(-4, 2.1); // Returns NaN
JavaScript
Math.pow(-4, 2.1); // Returns NaN