FLINT3.7.0-dev

_fq_poly_pow_trunc, fq_poly_pow_trunc, _fq_poly_pow_trunc_binexp, fq_poly_pow_trunc_binexp

Synopsis#include <flint/fq_poly.h>
void _fq_poly_pow_trunc(fq_struct * res, const fq_struct * poly, ulong e, slong trunc, const fq_ctx_t ctx)
void fq_poly_pow_trunc(fq_poly_t res, const fq_poly_t poly, ulong e, slong trunc, const fq_ctx_t ctx)
void _fq_poly_pow_trunc_binexp(fq_struct * res, const fq_struct * poly, ulong e, slong trunc, const fq_ctx_t ctx)
void fq_poly_pow_trunc_binexp(fq_poly_t res, const fq_poly_t poly, ulong e, slong trunc, const fq_ctx_t ctx)

Set res to \mathit{poly}^e \bmod x^{\mathit{trunc}}, by binary exponentiation with truncated multiplications. The underscore versions require the input to be zero-padded to length trunc, trunc > 0, e > 1 and space for trunc coefficients, and do not allow aliasing.

Cite this page

The FLINT team, “_fq_poly_pow_trunc, fq_poly_pow_trunc, _fq_poly_pow_trunc_binexp, fq_poly_pow_trunc_binexp (fq_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fq_poly/_fq_poly_pow_trunc.html (generated 2026-10-20).