Macaulay2 Engine
Loading...
Searching...
No Matches

◆ operator/ [1/5]

const mpreal operator/ ( const double b,
const mpreal & a )
friend

Definition at line 1542 of file mpreal.h.

1543{
1544#if (MPFR_VERSION >= MPFR_VERSION_NUM(2,4,0))
1545 mpreal x(0, mpfr_get_prec(a.mpfr_srcptr()));
1546 mpfr_d_div(x.mpfr_ptr(), b, a.mpfr_srcptr(), mpreal::get_default_rnd());
1547 return x;
1548#else
1549 mpreal x(b, mpfr_get_prec(a.mpfr_ptr()));
1550 x /= a;
1551 return x;
1552#endif
1553}
volatile int x

References get_default_rnd(), mpfr_ptr(), mpfr_srcptr(), mpreal(), operator/, and x.