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

◆ powr()

const mpreal mpfr::powr ( const mpreal & x,
const mpreal & y,
mp_rnd_t rnd_mode = mpreal::get_default_rnd() )
inline

Definition at line 2419 of file mpreal.h.

2420{
2421 /* powr(x,y) = exp(y*log(x)) */
2422 mpreal a(0, (std::max)(x.getPrecision(), y.getPrecision()));
2423 mpfr_powr(a.mpfr_ptr(), x.mpfr_srcptr(), y.mpfr_srcptr(), rnd_mode);
2424 return a;
2425}
::mpfr_srcptr mpfr_srcptr() const
Definition mpreal.h:1767
int getPrecision() const
Definition mpreal.h:1985
volatile int x

References mpfr::mpreal::get_default_rnd(), mpfr::mpreal::getPrecision(), mpfr::mpreal::mpfr_ptr(), mpfr::mpreal::mpfr_srcptr(), powr(), and x.

Referenced by powr().