From The Document Foundation Wiki
The result is the ComplexNumber raised to the power of Number.
ComplexNumber is a complex number that is entered in the form "x+yi" or "x+yj".
Number is the exponent.
=IMPOWER("2+3i";2) returns -5+12i.