_gr_poly_pow_series_fmpq_recurrence, gr_poly_pow_series_fmpq_recurrence
#include <flint/gr_poly.h>int _gr_poly_pow_series_fmpq_recurrence(gr_ptr h, gr_srcptr f, slong flen, const fmpq_t exp, slong len, int precomp, gr_ctx_t ctx)sourceint gr_poly_pow_series_fmpq_recurrence(gr_poly_t res, const gr_poly_t poly, const fmpq_t exp, slong len, gr_ctx_t ctx)sourceSet res to the power series for a rational exponent , using the recurrence obtained from for (often attributed to J. C. P. Miller, see [Knu1997, §4.7]), which costs operations. The constant term is computed with gr_pow_fmpq, and the recurrence divides by for , so and these integers must be invertible (or the divisions exact).
The underscore version writes len coefficients. Its flags precomp allow precomputed data: if bit 0 is set, h[0] already contains ; if bit 1 is set, h[i] contains for on input. Over integral domains of characteristic zero and integer exponents, the divisions are exact divisions.
References#
- [Knu1997] Knuth, D. E. The Art of Computer Programming, volume 2: Seminumerical algorithms, 1997
The FLINT team, “_gr_poly_pow_series_fmpq_recurrence, gr_poly_pow_series_fmpq_recurrence (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_series_fmpq_recurrence.html (generated 2026-11-02).
@misc{flint-doc-gr-poly-gr-poly-pow-series-fmpq-recurrence,
author = {{The FLINT team}},
title = {{\_gr\_poly\_pow\_series\_fmpq\_recurrence, gr\_poly\_pow\_series\_fmpq\_recurrence (gr\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr_poly/_gr_poly_pow_series_fmpq_recurrence.html},
note = {Generated 2026-11-02}
}