Exponentiation. This is the default function, if a class doesn't define this.
Reimplemented from Ring.
Definition at line 287 of file ZZ.cpp.
288{
290 if (n1.first)
291 return power(f, n1.second);
292 else
293 throw exc::engine_error("exponent too large");
294}
virtual ring_elem power(const ring_elem f, mpz_srcptr n) const
Exponentiation. This is the default function, if a class doesn't define this.
static std::pair< bool, int > get_si(mpz_srcptr n)
References get_si(), and power().
Referenced by power().