FLINT3.7.0-dev

fq_default_poly_powmod_ui_binexp, fq_default_poly_powmod_fmpz_binexp

Synopsis#include <flint/fq_default_poly.h>
void fq_default_poly_powmod_ui_binexp(fq_default_poly_t res, const fq_default_poly_t poly, ulong e, const fq_default_poly_t f, const fq_default_ctx_t ctx)source
void fq_default_poly_powmod_fmpz_binexp(fq_default_poly_t res, const fq_default_poly_t poly, const fmpz_t e, const fq_default_poly_t f, const fq_default_ctx_t ctx)source

Set res to \mathit{poly}^e \bmod f for e \ge 0 and f \ne 0, by binary exponentiation.

Cite this page

The FLINT team, “fq_default_poly_powmod_ui_binexp, fq_default_poly_powmod_fmpz_binexp (fq_default_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fq_default_poly/fq_default_poly_powmod_ui_binexp.html (generated 2026-10-20).