hold on
plot(x, y, 'ro') % Plot the values of 1, i, -1, and -i
text(x(1)+0.05,y(1),'1') % Add text labels
text(x(2),y(2)+0.1,'i')
text(x(3)-0.1,y(3),'-1')
text(x(4)-0.02,y(4)-0.1,'-i')
Knowing this, we can write the following expression for i:
i= cos 2 k+1/2π +isin 2 k+1/2π.
Taking the nth root of both sides gives
i1/n= cos 2 k+1/2π +isin 2 k+1/2π 1/n
19 Live Scripts and Functions