FLINT3.7.0-dev

_gr_poly_reverse, gr_poly_reverse

Synopsis#include <flint/gr_poly.h>
int _gr_poly_reverse(gr_ptr res, gr_srcptr poly, slong len, slong n, gr_ctx_t ctx)source
int gr_poly_reverse(gr_poly_t res, const gr_poly_t poly, slong n, gr_ctx_t ctx)source

Sets res to the reversal x^{n-1} f(1/x) of the polynomial f formed by the first n coefficients of poly (padded with zeros if poly is shorter). The underscore version requires \mathit{len} \le n, writes n coefficients and allows res to be poly.

Cite this page

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