The Complex Root Calculator provided by Hesapstan finds all nth roots of a complex number entered in rectangular or polar form. Instead of returning only one principal root, it lists every root for k=0 through n−1 and shows each result in polar and rectangular form.
What does this calculator do?
This calculator solves w^n = z for a complex number z. In the complex plane, an nth-root problem has n roots. The tool is designed to show the full set, not just a single selected root.
- Use rectangular input for z = a + bi.
- Use polar input when you already know the radius r and angle θ in degrees.
- Choose an integer n from 2 to 20.
- Review every root in polar and rectangular form.
- Use the circle plot to understand the spacing between the roots.
If n=6, the calculator returns six roots. This is different from tools that only display the principal root.
How are nth roots of a complex number calculated?
Complex roots are easiest to understand in polar form. If z = r cis(θ), each nth root has radius r^(1/n), and its angle is (θ + 360°·k) / n for k = 0, 1, 2, ..., n−1.
- Convert z to radius and angle if rectangular input is used.
- Compute the root radius r^(1/n).
- Add 360°·k to the angle for each k.
- Divide each adjusted angle by n.
- Convert every polar root back to rectangular form.
The displayed decimal values are approximate because trigonometric and floating-point calculations are involved. Very small rounding differences are expected.
Rectangular input vs polar input
Rectangular form separates the real and imaginary parts as a+bi. Polar form describes the same number by distance from the origin and angle. The calculation itself follows the polar-root pattern, so polar input is convenient when the angle is already known.
- Rectangular input: enter a and b, and the calculator derives radius and angle.
- Polar input: enter r and θ directly; r cannot be negative.
- Both input modes represent the same complex number when they describe the same point.
- Angles are entered in degrees, not radians.
A negative polar radius can represent the same point with a shifted angle, but this calculator keeps the standard r≥0 convention to avoid ambiguous input.
Example: fourth roots of 16
For z = 16 + 0i and n = 4, the root radius is 16^(1/4) = 2. The four angles are 0°, 90°, 180°, and 270°, so the roots are 2, 2i, −2, and −2i.
- Enter z as 16 + 0i.
- Set n to 4.
- The calculator creates roots for k=0,1,2,3.
- All roots have the same radius.
- The rectangular outputs appear approximately as 2+0i, 0+2i, −2+0i, and 0−2i.
The roots have equal radius and angles separated by 360°/n, so they sit evenly around a circle centered at the origin.
Principal root vs all complex roots
The principal root is one selected root, often the one corresponding to the principal angle. But the equation w^n = z has n complex solutions. This calculator is built for the complete solution set.
- A principal-root function may return only one value.
- The full nth-root set uses all k values from 0 to n−1.
- For equation solving, using only the principal root can omit valid solutions.
- The circle plot helps reveal the symmetry between the roots.
If the task asks for the nth roots of a complex number, all roots are usually required, not only the principal root.
Limits and correct use
This is a numeric complex-root calculator. It does not try to become a general symbolic equation solver or a proof tool.
- n must be an integer from 2 to 20.
- The n≤20 cap keeps the result table and visual plot readable and follows the project’s existing root-index convention.
- Polar input must use a nonnegative radius.
- Results are numerical approximations.
- The circle plot is explanatory, not a precision graphing environment.
Frequently Asked Questions
Does this calculator show all complex roots?
Yes. It lists all n roots for k=0 through n−1, not only the principal root.
Why is n limited to 20?
The limit keeps the table and visual output readable and matches the project’s existing convention for root index limits.
Can I enter a negative radius in polar form?
No. The calculator uses the standard polar convention r≥0 and rejects negative r values.
Are the roots exact?
The roots are shown numerically and should be treated as approximate because trigonometric floating-point calculations are used.
Is this a general equation solver?
No. It computes the nth roots of a given complex number z; it does not solve arbitrary complex equations or polynomials.