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

◆ isRelativelyPrime()

bool BRP::isRelativelyPrime ( const brMonomial & a,
const brMonomial & b )
inlinestatic

Definition at line 96 of file franzi-brp.hpp.

97 {
98 // check if a and b are relatively prime
99 return (((a | b) ^ a) == b);
100 }

Referenced by isGoodPair(), Pair::Pair(), and testIsRelativelyPrime().