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

◆ divide()

void M2::ARingQQGMP::divide ( ElementType & result,
const ElementType & a,
const ElementType & b ) const
inline

test doc

Definition at line 223 of file aring-qq-gmp.hpp.

226 {
227 if (is_zero(b)) throw exc::division_by_zero_error();
228 mpq_div(&result, &a, &b);
229 }
bool is_zero(const ElementType &f) const
VALGRIND_MAKE_MEM_DEFINED & result(result)

References is_zero(), and result().

Referenced by syzygy(), and TEST().