_fmpz_poly_roots_fmpz_squarefree, _fmpz_poly_roots_fmpq_squarefree
Synopsis
#include <flint/fmpz_poly.h>Write the integer (respectively rational) roots of (poly, len) to res in no particular order and return their number. The polynomial must be squarefree, with \mathit{len} \ge 1 and a nonzero constant coefficient; res must have room for \mathit{len} - 1 entries.
Cite this page
The FLINT team, “_fmpz_poly_roots_fmpz_squarefree, _fmpz_poly_roots_fmpq_squarefree (fmpz_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_poly/_fmpz_poly_roots_fmpz_squarefree.html (generated 2026-10-20).
@misc{flint-doc-fmpz-poly-fmpz-poly-roots-fmpz-squarefree,
author = {{The FLINT team}},
title = {{\_fmpz\_poly\_roots\_fmpz\_squarefree, \_fmpz\_poly\_roots\_fmpq\_squarefree (fmpz\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_poly/_fmpz_poly_roots_fmpz_squarefree.html},
note = {Generated 2026-10-20}
}