Compute things using mpz/mpfr.