Next: Root Extraction Functions, Previous: Division Functions, Up: Integer Functions [Index]
Set rop to (base raised to exp) modulo mod.
A negative exp is supported in mpz_powm
if an inverse
base^-1 mod mod exists (see mpz_invert
in
Number Theoretic Functions).
If an inverse doesn’t exist then a divide by zero is raised.