Manual for mpz_powm, mpz_powm_ui

abbott at dima.unige.it abbott at dima.unige.it
Mon Jun 27 12:44:09 UTC 2016


Hi!

What do mpz_powm and mpz_powm_ui return when the caller requests 0^0?
Are there restrictions on the value of the last arg (modulus)?
[can modulus be 0, 1, negative?]

Note: For mpz_pow_ui and mpz_ui_pow_ui the case 0^0 is clearly documented.

Thanks,
John Abbott




More information about the gmp-bugs mailing list