FLINT3.7.0-dev

_fmpz_mod_poly_add, _fmpz_mod_poly_sub

Synopsis#include <flint/fmpz_mod_poly.h>
void _fmpz_mod_poly_add(fmpz * res, const fmpz * poly1, slong len1, const fmpz * poly2, slong len2, const fmpz_mod_ctx_t ctx)source
void _fmpz_mod_poly_sub(fmpz * res, const fmpz * poly1, slong len1, const fmpz * poly2, slong len2, const fmpz_mod_ctx_t ctx)source

Set res to the sum or difference of (poly1, len1) and (poly2, len2), writing \max(\mathit{len1}, \mathit{len2}) coefficients without normalising. res may be one of the inputs.

Cite this page

The FLINT team, “_fmpz_mod_poly_add, _fmpz_mod_poly_sub (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_add.html (generated 2026-10-20).