Macaulay2 Engine
Loading...
Searching...
No Matches

◆ testRemainder()

void testRemainder ( )

Definition at line 324 of file franzi-brp-test.cpp.

325{ // f = ax+g
326 BRP f = BRP(2) * BRP(8) + BRP(7);
327 if ((BRP(7)) != f.remainder(BRP(8)))
328 {
329 cout << "error" << endl;
330 }
331 if ((BRP(2)) == f.remainder(BRP(8)))
332 {
333 cout << "error" << endl;
334 }
335
336 BRP a = BRP(8) * BRP(2);
337 if (a != f.remainder(BRP(7)))
338 {
339 cout << "error" << endl;
340 }
341}
BRP remainder(const BRP &x) const
Boolean (F_2-coefficient) polynomial stored as an ordered list of square-free monomials.

References BRP::remainder().

Referenced by main().