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



Task

Given   n,   find the   nth   roots of unity.




   rou=: [: ^ 0j2p1 * i. % ]
 
   rou 4
1 0j1 _1 0j_1
 
   rou 5
1 0.309017j0.951057 _0.809017j0.587785 _0.809017j_0.587785 0.309017j_0.951057