nmod_poly_set_trunc, nmod_poly_truncate
Synopsis
#include <flint/nmod_poly.h>void nmod_poly_set_trunc(nmod_poly_t res, const nmod_poly_t poly, slong len)sourcevoid nmod_poly_truncate(nmod_poly_t poly, slong len)sourceSet res to poly truncated to length len, that is, poly modulo x^{\mathit{len}}, and truncate poly in place. The result is normalised. Nothing happens if len is at least the length.
Cite this page
The FLINT team, “nmod_poly_set_trunc, nmod_poly_truncate (nmod_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod_poly/nmod_poly_set_trunc.html (generated 2026-10-20).
@misc{flint-doc-nmod-poly-nmod-poly-set-trunc,
author = {{The FLINT team}},
title = {{nmod\_poly\_set\_trunc, nmod\_poly\_truncate (nmod\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nmod_poly/nmod_poly_set_trunc.html},
note = {Generated 2026-10-20}
}