FLINT3.7.0-dev

fq_nmod_poly_roots

Synopsis#include <flint/fq_nmod_poly_factor.h>
void fq_nmod_poly_roots(fq_nmod_poly_factor_t r, const fq_nmod_poly_t f, int with_multiplicity, const fq_nmod_ctx_t ctx)

Sets r to the roots of the nonzero polynomial f in \mathbb{F}_q, stored as the monic linear factors x - a. If with_multiplicity is nonzero, the exponents are the multiplicities of the roots; otherwise they are 1. Previous contents of r are discarded. This is a wrapper of gr_poly_roots_finite_field, which splits \gcd(f, x^q - x) by equal-degree factorisation; see Roots of polynomials over finite fields.

Generated from the same template as fq_poly_roots, whose documentation has the details.

Cite this page

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