FLINT3.7.0-dev

_fq_nmod_poly_sqrt, fq_nmod_poly_sqrt

Synopsis#include <flint/fq_nmod_poly.h>
int _fq_nmod_poly_sqrt(fq_nmod_struct * s, const fq_nmod_struct * p, slong len, fq_nmod_ctx_t ctx)
int fq_nmod_poly_sqrt(fq_nmod_poly_t b, const fq_nmod_poly_t a, fq_nmod_ctx_t ctx)

If the polynomial is the square of a polynomial, set the output to a square root and return 1; otherwise return 0. The underscore version writes len / 2 + 1 coefficients.

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

Cite this page

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