FLINT3.7.0-dev

_gr_poly_pow_ui_binexp, gr_poly_pow_ui_binexp, _gr_poly_pow_ui, gr_poly_pow_ui

Synopsis#include <flint/gr_poly.h>
int _gr_poly_pow_ui_binexp(gr_ptr res, gr_srcptr f, slong flen, ulong exp, gr_ctx_t ctx)source
int gr_poly_pow_ui_binexp(gr_poly_t res, const gr_poly_t poly, ulong exp, gr_ctx_t ctx)source
int _gr_poly_pow_ui(gr_ptr res, gr_srcptr f, slong flen, ulong exp, gr_ctx_t ctx)source
int gr_poly_pow_ui(gr_poly_t res, const gr_poly_t poly, ulong exp, gr_ctx_t ctx)source

Set res to f^e by binary exponentiation (pow_ui currently calls the binexp version). The underscore versions write e(\mathit{flen} - 1) + 1 coefficients and require \mathit{flen} \ge 1 and e \ge 1. The non-underscore versions return GR_UNABLE if the length of the result would overflow an slong.

Cite this page

The FLINT team, “_gr_poly_pow_ui_binexp, gr_poly_pow_ui_binexp, _gr_poly_pow_ui, gr_poly_pow_ui (gr_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_poly/_gr_poly_pow_ui_binexp.html (generated 2026-10-20).