$z^2 = -1$ Why what i do is wrong? I want to calculate $z^2 = -1$ i think i should get  to $z = i$.
$-1 = -1+0i = 1(\cos(2\pi k)+i\sin(2\pi k)), k \in Z$
$z^2 = r^2(\cos(2 \theta) + i\sin(2\theta))$
So i get: 
$$r^2(\cos(2 \theta) + i\sin(2\theta)) = 1(\cos(2\pi k)+i\sin(2\pi k))$$
Namely: 
$r = 1, 2 \theta = 2 \pi k \Rightarrow \theta = \pi k$
So for $k = 0$ i get $z_0 = 1$ for $k=1: z_1 = -1$
What i do wrong?

Note that
$$-1 = -1+0i = 1[\cos(\pi+2\pi k)+i\sin(\pi+2\pi k)], \>k \in Z$$
Then,
$$z^2=r^2[\cos(2 \theta) + i\sin(2\theta)] = 1[\cos(\pi+2\pi k)+i\sin(\pi+2\pi k)]$$
and you get $r =1$ and $\theta = \frac\pi2 + k\pi$. As a result,
$$z_k = \cos(\frac\pi2+\pi k)+i\sin(\frac\pi2+\pi k)$$
So, for $k=0$ and $k=1$, you have respectively,
$$z_0= \cos\frac\pi2 +  i\sin\frac\pi2 = i;\>\>\>\>\>z_1= \cos\frac{3\pi}2 +  i\sin\frac{3\pi}2 =-i$$
