fmpz_poly_truncate, fmpz_poly_set_trunc
Synopsis
#include <flint/fmpz_poly.h>void fmpz_poly_truncate(fmpz_poly_t poly, slong newlen)sourcevoid fmpz_poly_set_trunc(fmpz_poly_t res, const fmpz_poly_t poly, slong n)sourceReduce 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).
@misc{flint-doc-fmpz-poly-fmpz-poly-truncate,
author = {{The FLINT team}},
title = {{fmpz\_poly\_truncate, fmpz\_poly\_set\_trunc (fmpz\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_poly/fmpz_poly_truncate.html},
note = {Generated 2026-10-20}
}