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

◆ hypot

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

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}
volatile int x

References get_default_rnd(), getPrecision(), hypot, mpfr_ptr(), mpfr_srcptr(), mpreal(), and x.

Referenced by hypot.