in reply to Re: root function
in thread root function

And PDL 2.040 or so introduced "native" complex numbers, without the visible real/imaginary dimension. It doesn't yet have an analogue of the Croots (multiple complex roots), evidently due to a lack of demand.

It would not be hard to implement, since the n roots of a complex number can be calculated very easily using https://en.wikipedia.org/wiki/De_Moivre%27s_formula: root_n = r(cos(theta + 2pi/n) + i sin(theta + 2pi/n)). Pull requests welcome!