\blue{ \large{x = BASE_REP}}
\orange{ \large{y = x^{EXPONENT}}}
\blue{x} is plotted in blue below.
Change the angle and radius to plot \orange{y} in orange.
10All powers of 1 are 1.
First express \blue{x} in Euler form.
\large {\blue{BASE_REP} = \blue{BASE_EULER_REP}}
\large{(\blue{BASE_EULER_REP}) ^ {EXPONENT} =
\blue{BASE_RADIUS}^{EXPONENT}
(\blue{polarForm(1, BASE_ANGLE, true)}) ^ {EXPONENT}=
\orange{coefficient(ANSWER_RADIUS)e ^ {EXPONENT \cdot BASE_E_EXPONENT}}}
So the radius of \orange{y} is ANSWER_RADIUS.
The angle of the result is \large{EXPONENT \cdot BASE_ANGLE_REP},
which is \large{ANGLE_MULTIPLE_REP}.
ANGLE_MULTIPLE_REP is more than 2 \pi.
It is a common practice to keep complex number angles between 0 and 2 \pi,
because e^{2 \pi i} = (e^{\pi i}) ^ 2 = (-1) ^ 2 = 1.
So subtract the nearest multiple of 2 \pi from the angle.
\large{ANGLE_MULTIPLE_REP - NEAREST_TWO_PI_MULTIPLE = ANSWER_ANGLE_REP}
\large{\orange{y = ANSWER_EULER}}
Converting this back from Euler form, we get
\large{y = ANSWER}.