For any complex number w=a+ib, the n-th roots of w are: zk=r1/n[cos(nθ+2πk)+isin(nθ+2πk)] where: r=a2+b2 is the magnitude of w, θ=arg(w) is the argument of w, k=0,1,2,…,n−1.