I have this problem :
$$x^2=i$$
The args = $\pi/2$.
$r = |z| = \sqrt{0^2+i^2}=\sqrt{i^2}=i$
for $$z_0=i((\cos (\pi/2)/2)+isin(\pi/2)/2)) = i(\frac{\sqrt{2}}{2})+i\frac{\sqrt{2}}{2})=i\frac{\sqrt{2}}{2}+i^2(\frac{\sqrt{2}}{2})$$
For some reason I don't get the result shown in the book, for some reason the book use $1$ instand of $i$ meaning that $\rightarrow$ $r=i=1$
I don't understand why, Any ideas?, Thanks.