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::mpreal::mpfr_srcptr
::mpfr_srcptr mpfr_srcptr() const
Definition
mpreal.h:1767
mpfr::mpreal::getPrecision
int getPrecision() const
Definition
mpreal.h:1985
mpfr::mpreal
Definition
mpreal.h:175
x
volatile int x
Definition
overflow-test.cpp:68
Referenced by
hypot()
, and
hypot()
.
mpfr
Generated on
for Macaulay2 Engine by
1.15.0