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

◆ lower_associate_divisor()

bool Ring::lower_associate_divisor ( ring_elem & f,
ring_elem g ) const
virtual

Reimplemented in M2::RingQQ, and RingZZ.

Definition at line 297 of file ring.cpp.

299{
300 if (is_zero(f))
301 {
302 f = g;
303 return !is_zero(f);
304 }
305 return true;
306}
virtual bool is_zero(const ring_elem f) const =0

References is_zero().

Referenced by PolyRing::preferred_associate_divisor().