Calculator: Roots of a complex number
Enter the labelled inputs to calculate: Values (spaces or semicolons; decimal point) Re; Values (spaces or semicolons; decimal point) Im.
Enter a finite value within the formula’s domain and supported numeric range.
How the calculation works
wk=|z|^(1/n)exp[i(arg z+2πk)/n]; k=0,…,n−1
Complex logarithm and exponential angles use radians. The logarithm is the principal branch with argument in (−π,π]. Roots are listed counterclockwise from the principal argument, with multiplicity. Zero to a nonpositive integer power and logarithm of zero are undefined.
Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
Frequently asked questions
How is the result calculated?
wk=|z|^(1/n)exp[i(arg z+2πk)/n]; k=0,…,n−1
What assumptions apply?
Complex logarithm and exponential angles use radians. The logarithm is the principal branch with argument in (−π,π]. Roots are listed counterclockwise from the principal argument, with multiplicity. Zero to a nonpositive integer power and logarithm of zero are undefined.
How precise are the displayed results?
Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
How we verified this calculator
The calculator is checked against 3 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
Real part = 8
Imaginary part = 0
Order = 3
|
Values (spaces or semicolons; decimal point) Re: 2; -1; -1
Values (spaces or semicolons; decimal point) Im: 0; 1.732050808; -1.732050808
|
| 2 |
Real part = 0
Imaginary part = 16
Order = 4
|
Values (spaces or semicolons; decimal point) Re: 1.847759065; -0.7653668647; -1.847759065; 0.7653668647
Values (spaces or semicolons; decimal point) Im: 0.7653668647; 1.847759065; -0.7653668647; -1.847759065
|
| 3 |
Real part = -2
Imaginary part = 2
Order = 5
|
Values (spaces or semicolons; decimal point) Re: 1.096957705; -0.1925934177; -1.215986983; -0.5589278675; 0.8705505633
Values (spaces or semicolons; decimal point) Im: 0.5589278675; 1.215986983; 0.1925934177; -1.096957705; -0.8705505633
|