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

◆ atan2()

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

Definition at line 2452 of file mpreal.h.

2453{
2454 mpreal a(0,(std::max)(y.getPrecision(), x.getPrecision()));
2455 mpfr_atan2(a.mpfr_ptr(), y.mpfr_srcptr(), x.mpfr_srcptr(), rnd_mode);
2456 return a;
2457}
::mpfr_srcptr mpfr_srcptr() const
Definition mpreal.h:1767
int getPrecision() const
Definition mpreal.h:1985
volatile int x