I have used "solve" to factor a fourth order polynomial. It has four roots with three complex numbers. I used:
xf = solve(x^4+7*x^3-8*x^2+5*x+2,x)if (isreal(xf)==1) ...end;
to try to pull out the real roots but it did not work.
Is there a better way?
Best Answer