FLINT3.7.0-dev

_arb_get_mpn_fixed_mod_pi4

Synopsis#include <flint/arb.h>
int _arb_get_mpn_fixed_mod_pi4(nn_ptr w, fmpz_t q, int * octant, ulong * error, const arf_t x, slong wn)source

Attempts to write |x| = q \pi/4 + w with 0 \le w < \pi/4, w a fixed-point number of wn limbs with error error ulps, and writes q \bmod 8 to octant. q may be NULL. Returns 0 if the precision of the internal table of \pi is insufficient.

Cite this page

The FLINT team, “_arb_get_mpn_fixed_mod_pi4 (arb.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arb/_arb_get_mpn_fixed_mod_pi4.html (generated 2026-10-20).