FLINT3.7.0-dev

fmpz_mod_mpoly_spoly

Synopsis#include <flint/fmpz_mod_mpoly.h>
void fmpz_mod_mpoly_spoly(fmpz_mod_mpoly_t res, const fmpz_mod_mpoly_t f, const fmpz_mod_mpoly_t g, const fmpz_mod_mpoly_ctx_t ctx)source

Sets res to the S-polynomial of f and g, computed after making f and g monic: \mathrm{lcm}/\mathrm{lm}(f) \cdot f/\mathrm{lc}(f) - \mathrm{lcm}/\mathrm{lm}(g) \cdot g/\mathrm{lc}(g), where lcm is the least common multiple of the leading monomials.

Cite this page

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