The function make_sqrt<RT> constructs a square root of a given value of type RT. Depending on the type RT the square root may be returned in a new type that can represent algebraic extensions of degree 2.
#include <CGAL/Root_of_traits.h>
template <typename RT> | ||||||
Root_of_traits<RT>::Root_of_2 | make_sqrt ( RT x) |
Returns √x.
|