FLINT3.7.0-dev

_gr_poly_product_roots, gr_poly_product_roots

Synopsis#include <flint/gr_poly.h>
int _gr_poly_product_roots(gr_ptr poly, gr_srcptr xs, slong n, gr_ctx_t ctx)source
int gr_poly_product_roots(gr_poly_t poly, const gr_vec_t xs, gr_ctx_t ctx)source

Set poly to (x - x_0)(x - x_1) \cdots (x - x_{n-1}). The underscore version writes n + 1 coefficients.

Cite this page

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