commands → complexroots

complexroots(A,X)

The complexroots command attempts to find all complex roots of a complex polynomial A(X) numerically.

Examples

f = x^2+x+1;
complexroots(f,x);
	[(-0.5+0.866025403784439*I), (-0.5-0.866025403784439*I)]

Algorithm

Link to Laguerre's method on Wikipedia