The purpose of this task is to explore working with   complex numbers.



Task

Given   n,   find the   nth   roots of unity.




for j = 2 : 10
  printf("*** %d\n", j);
  for n = 1 : j
    disp(exp(2i*pi*n/j));
  endfor
  disp("");
endfor