add mpfr support for cos and tan