FLINT3.7.0-dev

fmpz_poly_truncate, fmpz_poly_set_trunc

Synopsis#include <flint/fmpz_poly.h>
void fmpz_poly_truncate(fmpz_poly_t poly, slong newlen)source
void fmpz_poly_set_trunc(fmpz_poly_t res, const fmpz_poly_t poly, slong n)source

Reduce modulo x^n: fmpz_poly_truncate truncates poly in place to length at most newlen, and fmpz_poly_set_trunc sets res to poly truncated to length n. Both normalise the result.

Cite this page

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