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

◆ testAddition2()

void testAddition2 ( )

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

140{
141 BRP a = BRP(35) + BRP(16) + BRP(15) + BRP(5) + BRP(2);
142 BRP b = BRP(38) + BRP(13) + BRP(12) + BRP(6) + BRP(4) + BRP(2) + BRP(1);
143 BRP c = a + b;
144 BRP correct = BRP(38) + BRP(35) + BRP(16) + BRP(15) + BRP(13) + BRP(12) +
145 BRP(6) + BRP(5) + BRP(4) + BRP(1);
146
147 if (c != correct)
148 {
149 cout << "Addition failed" << endl;
150 }
151}
Boolean (F_2-coefficient) polynomial stored as an ordered list of square-free monomials.

Referenced by main().