/* mpf_math.h change the value of "digits" to your choice */ /* Then make -f Makefile_mpf_math in your directory */ /* then #include "mpf_math.h" in C or C++ source */ /* link with -L. -lmpf_math */ #include #define digits 200 /* set_mpf_default_prec(digits*3.32); in your source code */ /* mpf_sqrt(mpf_t result, mpf_t x); already available in gmp */ void mpf_sin(mpf_t result, mpf_t x); void mpf_cos(mpf_t result, mpf_t x); void mpf_exp(mpf_t result, mpf_t x); /* functions that return constants to "digits" precision */ void mpf_twopi(mpf_t result); void mpf_pi(mpf_t result); void mpf_halfpi(mpf_t result); void mpf_fourthpi(mpf_t result); void mpf_e(mpf_t result); void mpf_log_10base2(mpf_t result); void mpf_rfact(mpf_t rfact[]); /* mpf_base called only once when some initialization needed */ /* end mpf_math.h */