Definition at line 149 of file ARingRRiTest.cpp.
150{
155 R.init(a);
156 R.init(b);
157 R.init(c);
158 R.init(e);
159
161 S.init(f);
162 for (
int i = 0; i <
ntrials; i++)
163 {
164
165 gen.nextElement(a);
166 gen.nextElement(b);
167 R.subtract(c, a, b);
168 R.add(e, c, b);
169 EXPECT_TRUE(R.is_subset(a,e));
170 R.mult(e, a, b);
171 R.subtract_multiple(e, a, b);
172 R.midpoint(f,e);
173 EXPECT_TRUE(S.is_zero(f));
174 }
175 S.clear(f);
176 R.clear(e);
177 R.clear(c);
178 R.clear(b);
179 R.clear(a);
180}
aring-style adapter for arbitrary-precision real numbers, backed by MPFR.
aring-style adapter for arbitrary-precision real intervals, backed by MPFI.
References M2::ARingRRi::add(), M2::ARingRRi::clear(), M2::ARingRRR::clear(), M2::ARingRRi::init(), M2::ARingRRR::init(), M2::ARingRRi::is_subset(), M2::ARingRRR::is_zero(), M2::ARingRRi::midpoint(), M2::ARingRRi::mult(), ARingElementGenerator< RingType >::nextElement(), ntrials, M2::ARingRRi::subtract(), subtract(), and M2::ARingRRi::subtract_multiple().