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



Task

Given   n,   find the   nth   roots of unity.




#lang racket
 
(define (roots-of-unity n)
  (for/list ([k n])
    (make-polar 1 (* k (/ (* 2 pi) n)))))