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 q and r with x = qy + r and N(r) < N(y), choosing q from a floating-point approximation of x/y when the operands have similar sizes; the choice is implementation-defined. r may be NULL. Throws if y = 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-10-20).