_fmpz_poly_pow_trunc, fmpz_poly_pow_trunc
Synopsis
#include <flint/fmpz_poly.h>void fmpz_poly_pow_trunc(fmpz_poly_t res, const fmpz_poly_t poly, ulong e, slong n)sourceSet res to poly raised to the power e and truncated to length n, computed with truncated products throughout, which is much faster than powering and truncating; with 0^0 = 1 for n > 0. The underscore version reads n coefficients of poly (so it must be zero padded to length n), requires e, n > 0 and does not allow aliasing.
Cite this page
The FLINT team, “_fmpz_poly_pow_trunc, fmpz_poly_pow_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_pow_trunc.html (generated 2026-10-20).
@misc{flint-doc-fmpz-poly-fmpz-poly-pow-trunc,
author = {{The FLINT team}},
title = {{\_fmpz\_poly\_pow\_trunc, fmpz\_poly\_pow\_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_pow_trunc.html},
note = {Generated 2026-10-20}
}