add helper function for evaluating exp using only mpfr