Only real roots (basic)



hi friends,

why this doesn't give only real roots:

f(x):=x^3-x^2+x+1;
declare(x,real);
solve(f(x));

i just want [x=(sqrt(11)/...)]

thanks.