FLINT3.7.0-dev

_fmpz_poly_product_roots_fmpq_vec, fmpz_poly_product_roots_fmpq_vec

Synopsis#include <flint/fmpz_poly.h>
void _fmpz_poly_product_roots_fmpq_vec(fmpz * poly, const fmpq * xs, slong n)source
void fmpz_poly_product_roots_fmpq_vec(fmpz_poly_t poly, const fmpq * xs, slong n)source

Set poly to (q0x−p0)⋯(qn−1x−pn−1)(q_0 x - p_0) \cdots (q_{n-1} x - p_{n-1}) for the rational numbers xi=pi/qix_i = p_i / q_i in xs, the primitive polynomial in Z[x]\mathbb{Z}[x] with roots xix_i when they are given in lowest terms. The underscore version writes n+1n + 1 coefficients.

Cite this page

The FLINT team, “_fmpz_poly_product_roots_fmpq_vec, fmpz_poly_product_roots_fmpq_vec (fmpz_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_poly/_fmpz_poly_product_roots_fmpq_vec.html (generated 2026-11-02).