FLINT3.7.0-dev

_fmpz_poly_add, _fmpz_poly_sub

Synopsis#include <flint/fmpz_poly.h>
void _fmpz_poly_add(fmpz * res, const fmpz * poly1, slong len1, const fmpz * poly2, slong len2)source
void _fmpz_poly_sub(fmpz * res, const fmpz * poly1, slong len1, const fmpz * poly2, slong len2)source

Set (res, max(len1, len2)) to the sum, respectively difference, of (poly1, len1) and (poly2, len2). The output may be equal to either input.

Cite this page

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