Is there an existing formula to raise a complex number to a power?
That is, I want to compute $(1 + i)^N$.
I basically want to write a function like so:
def raiseComplexNumberToPower(float real, float imag, float power):
return // (real + imag) ^ power