I'm beginner with mpfr, I wrote this program to make a specific calculation and get it like you see,but I don't know why this error appear, this is the most important my code:
mpfr_t myfct(int n)
{
/......./
return mpfr_get(result,MPFR_RNDN);
}
int main(void)
{
mpfr_t U;
mpfr_set_default_prec (53);
mpfr_set_emin (-1073);
mpfr_set_emax (1024);
n=10;
mpfr_init2(U,24);
mpfr_get(U,my_fct(n),MPFR_RNDN);
mpfr_printf ("result: %.40Rg\n", U);
mpfr_clear(U);
return 0;
}
What's the matter ??