N-th roots of complex numbers?



On 01-10-2013 11:46, Aleksas Domarkas wrote:
> The cube root of 110+74i would return 5+i.
> How compute this?
Not very elegant, but here it goes anyway:

(%i4) float (rectform (solve (z^3 = 110+74*%i, z)));

(%o4) [z = 3.830127018922193 %i - 3.366025403784438,
               z = - 4.830127018922193 %i - 1.633974596215561, z = 1.0 
%i + 5.0]

Jaime