Return Value

The roots of unity are the solutions to the
equation zn= 1, with n the
degree, which cannot be zero. There are exactly n solutions to this
equations. Together, they give
the coordinates of a regular n-sided polygon
with its center at the origin, its vertices at unit
distance from the origin, and its first vertex
on the real axis.

This method returns the roots of the specified
degree in counter-clockwise order. The index can be any integer value.