Loading…

Complex Root of Unity Generator

Math Algebra • Complex Numbers

View all topics
8. Complex Root Of Unity Generator
Generate the \(n\)-th roots of unity (solutions of \(z^n=1\)), list them in polar/rectangular form, highlight primitive roots, and visualize them on the unit circle.
Inputs
Integer \(n \ge 1\). For large \(n\), labels are thinned to avoid clutter.
In the table/output, the polar form is still rendered as proper LaTeX.
If \(k\) is coprime to \(n\), then \(\omega^k\) is primitive and its powers visit all roots: \(1,\omega^k,\omega^{2k},\dots\).
Ready
Unit circle plot
Drag to pan • wheel/pinch to zoom • hover a point to see its value • Auto fit keeps the unit circle visible
x: 0, y: 0, zoom: 1
All roots lie on \(|z|=1\). The root for index \(k\) is \(z_k=e^{i 2\pi k/n}\) for \(k=0..n-1\).
Results
Click Generate.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

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.