#include <Concepts/AlgebraicKernel_d_1--ApproximateRelative_1.h>
A model of AlgebraicKernel_d_1::ApproximateRelative_1
is an AdaptableBinaryFunction
that computes an approximation of an AlgebraicKernel_d_1::Algebraic_real_1
value with respect to a given relative precision.
- Refines:
AdaptableBinaryFunction
- See also
AlgebraicKernel_d_1::ApproximateAbsolute_1
◆ first_argument_type
◆ result_type
◆ second_argument_type
◆ operator()()
The function computes a pair \( p\) of AlgebraicKernel_d_1::Bound
, where \( p.first\) represents the lower approximation and \( p.second\) represents the upper approximation.
The pair \( p\) approximates the given value \( x\) with respect to the given relative precision \( r\).
- Postcondition
- \( p.first <= x \)
-
\( x <= p.second \)
-
\( (x - p.first) <= 2^{-r} *|x|\)
-
\( (p.second - x) <= 2^{-r} *|x|\)