Gren Flag Adjust the ax and ay sliders and hit the green flag a=ax+i*ay a=1 a=-1 a=1+i a=1-i a=-1-i a=-1+i a=-i a=i
Z=x+iy Z=|Z|(cosα + i sinα) where |Z|=sqrt(x^2+y^2) α=arctg(y/x) To calculate the power of complex numbers, I used the de Moivre formula. Z^5=(|Z|^5)*(cos(5*α) + i sin(5*α))