FLINT3.7.0-dev

_nmod_poly_power_sums, nmod_poly_power_sums

Synopsis#include <flint/nmod_poly.h>
void _nmod_poly_power_sums(nn_ptr res, nn_srcptr poly, slong len, slong n, nmod_t mod)source
void nmod_poly_power_sums(nmod_poly_t res, const nmod_poly_t poly, slong n)source

Set res to \sum_{k=0}^{n-1} p_k x^k. The non-underscore version accepts any nonzero poly with invertible leading coefficient (throwing FLINT_ERROR for zero) and handles factors x^k. The underscore version requires poly monic and writes n coefficients. Uses Newton's identities for 10 n < \mathit{len} + 75 and the series formula otherwise.

Cite this page

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