FLINT3.7.0-dev

fmpz_mpoly_spoly

Synopsis#include <flint/fmpz_mpoly.h>
void fmpz_mpoly_spoly(fmpz_mpoly_t res, const fmpz_mpoly_t f, const fmpz_mpoly_t g, const fmpz_mpoly_ctx_t ctx)source

Sets res to the S-polynomial of f and g, scaled to integer coefficients: with L = \operatorname{lcm}(\operatorname{lm} f, \operatorname{lm} g) and c = \operatorname{lcm}(\operatorname{lc} f, \operatorname{lc} g), \frac{cL}{\operatorname{lt} f} f - \frac{cL}{\operatorname{lt} g} g.

Cite this page

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