Function

CGAL::compute_roots_of_2<RT,OutputIterator>

Definition

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.
Precondition: RT is an IntegralDomainWithoutDivision.
Precondition: a 0 or b 0.

See Also

RootOf_2
CGAL::Root_of_traits<RT>
CGAL::make_root_of_2<RT>
CGAL::make_sqrt<RT>
CGAL::Sqrt_extension<NT,ROOT>