Function

CGAL::make_sqrt<RT>

Definition

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.
Precondition: RT is a RealEmbeddable IntegralDomain.
Precondition:  x 0

See Also

RootOf_2
CGAL::make_root_of_2<RT>
CGAL::Root_of_traits<RT>