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

◆ atan2u()

const mpreal mpfr::atan2u ( const mpreal & y,
const mpreal & x,
unsigned long u,
mp_rnd_t rnd_mode = mpreal::get_default_rnd() )
inline

Definition at line 2400 of file mpreal.h.

2401{
2402 /*
2403 atan2u(y,x,u) = atan(|y/x|)*u/(2*pi) for x > 0
2404 atan2u(y,x,u) = 1-atan(|y/x|)*u/(2*pi) for x < 0
2405 */
2406 mpreal a(0, (std::max)(y.getPrecision(), x.getPrecision()));
2407 mpfr_atan2u(a.mpfr_ptr(), y.mpfr_srcptr(), x.mpfr_srcptr(), u, rnd_mode);
2408 return a;
2409}
::mpfr_srcptr mpfr_srcptr() const
Definition mpreal.h:1767
int getPrecision() const
Definition mpreal.h:1985
volatile int x

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

Referenced by atan2u().