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

◆ frexp() [2/2]

const mpreal mpfr::frexp ( const mpreal & x,
mp_exp_t * exp,
mp_rnd_t mode = mpreal::get_default_rnd() )
inline

Definition at line 2053 of file mpreal.h.

2054{
2055 mpreal y(x);
2056#if (MPFR_VERSION >= MPFR_VERSION_NUM(3,1,0))
2057 mpfr_frexp(exp,y.mpfr_ptr(),x.mpfr_srcptr(),mode);
2058#else
2059 *exp = mpfr_get_exp(y.mpfr_srcptr());
2060 mpfr_set_exp(y.mpfr_ptr(),0);
2061#endif
2062 return y;
2063}
const mpreal exp(const mpreal &x, mp_rnd_t r=mpreal::get_default_rnd())
Definition mpreal.h:2298
volatile int x

References exp(), frexp(), mpfr::mpreal::get_default_rnd(), mpfr::mpreal::mpfr_ptr(), mpfr::mpreal::mpfr_srcptr(), and x.

Referenced by frexp(), and frexp().