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

◆ hypot() [3/3]

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

Definition at line 2459 of file mpreal.h.

2460{
2461 mpreal a(0,(std::max)(y.getPrecision(), x.getPrecision()));
2462 mpfr_hypot(a.mpfr_ptr(), x.mpfr_srcptr(), y.mpfr_srcptr(), rnd_mode);
2463 return a;
2464}
::mpfr_srcptr mpfr_srcptr() const
Definition mpreal.h:1767
int getPrecision() const
Definition mpreal.h:1985
volatile int x

Referenced by hypot(), and hypot().