The class which implements the functions to isolate or approximate the real roots of a univariate polynomial are of the form
| R | is the ring in which the computation is performed. |
| M | is the method used for solving. |
Such a class provides a static solve function:
where
Solutions is the type used to store the solutions, The solutions are appended at the end of sol using the operator<< . Polynomial is the type of the input polynomial.A general interface function solve is also available:
The function solver<typename Polynomial::Scalar,mth>::solve is called and the result of type typename solver<typename Polynomial::Scalar,mth>::Solutions is returned.