FLINT3.7.0-dev

_fmpz_poly_pow_addchains, fmpz_poly_pow_addchains

Synopsis#include <flint/fmpz_poly.h>
void _fmpz_poly_pow_addchains(fmpz * res, const fmpz * poly, slong len, const int * a, int n)source
void fmpz_poly_pow_addchains(fmpz_poly_t res, const fmpz_poly_t poly, ulong e)source

Set res to poly raised to the power e along an addition chain. The underscore version takes a star chain 1 = a_0 < a_1 < \cdots < a_n = e (each a_i is a_{i-1} + a_j for some j < i) with n > 1, requires \mathit{len} > 0 and does not allow aliasing. The non-underscore version uses a table of chains for e \le 148 and raises an exception for larger e.

Cite this page

The FLINT team, “_fmpz_poly_pow_addchains, fmpz_poly_pow_addchains (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_addchains.html (generated 2026-10-20).