Manual for mpz_powm, mpz_powm_ui

2016-06-27 Thread abbott

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


___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: Manual for mpz_powm, mpz_powm_ui

2016-06-27 Thread Torbjörn Granlund
[Please follow up to gmp-discuss as this is not a bug report.]

-- 
Torbjörn
Please encrypt, key id 0xC8601622
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs