The mathematical definition of complex number is a number consisting of real part and imaginary part in the form of a+bj, where A and B are real numbers, J is imaginary unit, and the square of J is equal to-1.a and B are called the real part and imaginary part of complex number a+bj respectively.
When python calculates the exponential power of a negative number, it appears as a complex number.