The function compute_roots_of_2<RT,OutputIterator> solves a univariate polynomial as it is defined by the coefficients given to the function. The solutions are written into the given OutputIterator.
#include <CGAL/Root_of_traits.h>
template <typename RT, typename OutputIterator> | ||||||
OutputIterator | compute_roots_of_2 ( RT a, RT b, RT c, OutputIterator oit) | |||||
Writes the real roots of the polynomial aX2+bX+c into oit in ascending order. OutputIterator is required to accept Root_of_traits<RT>::Root_of_2. Multiplicities are not reported.
|