Complex Root of Unity Generator
Math Algebra • Complex Numbers
Frequently Asked Questions
What are the n-th roots of unity?
They are the complex numbers that satisfy z^n = 1. They lie equally spaced on the unit circle and can be written as z_k = e^(i 2pi k / n) for k = 0, 1, ..., n-1.
How do I know which roots of unity are primitive?
A root z_k is primitive exactly when gcd(k, n) = 1. Primitive roots have order n, meaning their powers generate all n roots.
Why do the roots of unity add up to zero?
For n > 1, the roots form a geometric series with ratio omega = e^(i 2pi / n) not equal to 1. The sum 1 + omega + ... + omega^(n-1) equals (omega^n - 1) / (omega - 1) = 0.
Should I use radians or degrees for the arguments of the roots?
Either unit works; the roots are determined by angles 2pi k / n in radians or 360 k / n in degrees. The unit choice only changes how the angle is displayed in the output.
What does connecting the roots in order show?
Connecting consecutive roots draws a regular n-gon inscribed in the unit circle. It helps visualize the equal spacing and symmetry of the roots around the origin.