Implements Ring.
Definition at line 304 of file ZZ.cpp.
305{
306 if (
is_zero(g))
throw exc::division_by_zero_error();
309 mpz_init(rem);
311 if (mpz_sgn(rem)) throw exc::engine_error("division not exact");
312 mpz_clear(rem);
315}
virtual bool is_zero(const ring_elem f) const
void mpz_reallocate_limbs(mpz_ptr _z)
VALGRIND_MAKE_MEM_DEFINED & result(result)
const mpreal rem(const mpreal &x, const mpreal &y, mp_rnd_t rnd_mode=mpreal::get_default_rnd())
mpz_srcptr get_mpz() const
References ring_elem::get_mpz(), is_zero(), mpz_reallocate_limbs(), new_elem(), and result().
Referenced by syzygy(), and TEST().