FLINT3.7.0-dev

_nmod_poly_exp_series, nmod_poly_exp_series

Synopsis#include <flint/nmod_poly.h>
void _nmod_poly_exp_series(nn_ptr f, nn_srcptr h, slong hlen, slong n, nmod_t mod)source
void nmod_poly_exp_series(nmod_poly_t f, const nmod_poly_t h, slong n)source

Set f = \exp(h) \bmod x^n.

The algorithm depends on the length of h (not on n). If h has fewer than about 230 to 490 coefficients (with fft_small, depending on the bit size of p), the recurrence k f_k = \sum_{j = 1}^{k} j h_j f_{k - j} from f' = h' f is used, which costs O(n \cdot \mathit{hlen}); up to about 470 to 1490 coefficients the same recurrence with the sums computed by blocks of multiplications; beyond that Newton iteration.

Guides#

Cite this page

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