The function make_root_of_2<RT> constructs an algebraic number of degree 2 over a ring number type.
#include <CGAL/Root_of_traits.h>
template <typename RT> | ||||||
Root_of_traits<RT>::Root_of_2 | make_root_of_2 ( RT a, RT b, RT c, bool s) | |||||
Returns the smallest real root of the polynomial aX2+bX+c if s is true, and the largest root is s is false.
| ||||||
template <typename RT> | ||||||
Root_of_traits<RT>::Root_of_2 | make_root_of_2 ( RT alpha, RT beta, RT gamma) | |||||
Constructs the number α+ β√γ.
|