FLINT3.7.0-dev

arf_const_pi, arf_const_pi_mul_2exp

Synopsis#include <flint/arf.h>
int arf_const_pi(arf_ptr res, slong prec, arf_rnd_t rnd)source
int arf_const_pi_mul_2exp(arf_ptr res, slong k, int neg, slong prec, arf_rnd_t rnd)source

Sets res to π\pi, resp. (−1)negπ2k(-1)^{\mathit{neg}} \pi 2^k, correctly rounded (from the tabulated π/4\pi/4 of mp_real).

Cite this page

The FLINT team, “arf_const_pi, arf_const_pi_mul_2exp (arf.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arf/arf_const_pi.html (generated 2026-11-17).