up previous next
NumRealRoots

number of real roots of a polynomial

Syntax
NumRealRoots(F: RINGELEM): INT

Description
This function returns the number of real roots the polynomial F has. The coefficients of F must be rational.

Example
/**/  use QQ[x];
/**/  NumRealRoots(x^10 - (10^10*x-1)^2);
4

See Also