FLINT3.7.0-dev

_fq_poly_powmod_ui_binexp, fq_poly_powmod_ui_binexp, _fq_poly_powmod_fmpz_binexp, fq_poly_powmod_fmpz_binexp

Synopsis#include <flint/fq_poly.h>
void _fq_poly_powmod_ui_binexp(fq_struct * res, const fq_struct * poly, ulong e, const fq_struct * f, slong lenf, const fq_ctx_t ctx)
void fq_poly_powmod_ui_binexp(fq_poly_t res, const fq_poly_t poly, ulong e, const fq_poly_t f, const fq_ctx_t ctx)
void _fq_poly_powmod_fmpz_binexp(fq_struct * res, const fq_struct * poly, const fmpz_t e, const fq_struct * f, slong lenf, const fq_ctx_t ctx)
void fq_poly_powmod_fmpz_binexp(fq_poly_t res, const fq_poly_t poly, const fmpz_t e, const fq_poly_t f, const fq_ctx_t ctx)

Set res to \mathit{poly}^e \bmod f for e \ge 0, by binary exponentiation. The underscore versions require e > 0, lenf > 1, poly reduced modulo f and zero-padded to length lenf - 1, and space for lenf - 1 coefficients in res.

Cite this page

The FLINT team, “_fq_poly_powmod_ui_binexp, fq_poly_powmod_ui_binexp, _fq_poly_powmod_fmpz_binexp, fq_poly_powmod_fmpz_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_powmod_ui_binexp.html (generated 2026-10-20).