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

◆ atan2pi()

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

Definition at line 2411 of file mpreal.h.

2412{
2413 /* atan2pi(x) = atan2u(u=2) */
2414 mpreal a(0, (std::max)(y.getPrecision(), x.getPrecision()));
2415 mpfr_atan2pi(a.mpfr_ptr(), y.mpfr_srcptr(), x.mpfr_srcptr(), rnd_mode);
2416 return a;
2417}
::mpfr_srcptr mpfr_srcptr() const
Definition mpreal.h:1767
int getPrecision() const
Definition mpreal.h:1985
volatile int x

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

Referenced by atan2pi().