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

◆ is_pm_one()

bool M2::ARingQQGMP::is_pm_one ( const ElementType & f) const
inline

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

88 {
89 return (mpz_cmp_si(mpq_denref(&f), 1) == 0 and
90 (mpz_cmp_si(mpq_numref(&f), 1) == 0 or
91 mpz_cmp_si(mpq_numref(&f), -1) == 0));
92 }

Referenced by elem_text_out().