FLINT3.7.0-dev

fmpz_mod_poly_remove

Synopsis#include <flint/fmpz_mod_poly.h>
ulong fmpz_mod_poly_remove(fmpz_mod_poly_t f, const fmpz_mod_poly_t p, const fmpz_mod_ctx_t ctx)source

Divides f by the largest power of p that divides it and returns the exponent. p must have an invertible leading coefficient. An exception is raised if p is zero or constant.

Cite this page

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