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

◆ testIsLeadingReducibleBy()

void testIsLeadingReducibleBy ( )

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

308{
309 BRP f = BRP(2) * BRP(8) + BRP(7);
310 if (!f.isLeadingReducibleBy(BRP(8)))
311 {
312 cout << "error" << endl;
313 }
314 if (!f.isLeadingReducibleBy(BRP(2)))
315 {
316 cout << "error" << endl;
317 }
318 if (f.isLeadingReducibleBy(BRP(1)))
319 {
320 cout << "error" << endl;
321 }
322}
bool isLeadingReducibleBy(const BRP &other) const
Boolean (F_2-coefficient) polynomial stored as an ordered list of square-free monomials.

References BRP::isLeadingReducibleBy().

Referenced by main().