FLINT3.7.0-dev

fmpzi_divrem_approx

Synopsis#include <flint/fmpzi.h>
void fmpzi_divrem_approx(fmpzi_t q, fmpzi_t r, const fmpzi_t x, const fmpzi_t y)source

Sets qq and rr with x=qy+rx = qy + r and N(r)<N(y)N(r) < N(y), choosing qq from a floating-point approximation of x/yx/y when the operands have similar sizes; the choice is implementation-defined. r may be NULL. Throws if y=0y = 0.

Cite this page

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