FLINT3.7.0-dev

nmod_mpoly_divides

Synopsis#include <flint/nmod_mpoly.h>
int nmod_mpoly_divides(nmod_mpoly_t Q, const nmod_mpoly_t A, const nmod_mpoly_t B, const nmod_mpoly_ctx_t ctx)source

If B divides A, sets Q to the exact quotient A/B and returns 1; otherwise sets Q to zero and returns 0. Throws FLINT_DIVZERO if B is zero and A is not (unless n = 1), and FLINT_IMPINV if the leading coefficient of B is not invertible. For long A the heap division runs in several threads.

Guides#

Cite this page

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