FLINT3.7.0-dev

fmpq_mpoly_sqrt

Synopsis#include <flint/fmpq_mpoly.h>
int fmpq_mpoly_sqrt(fmpq_mpoly_t Q, const fmpq_mpoly_t A, const fmpq_mpoly_ctx_t ctx)source

If A is the square of a polynomial over \mathbb{Q}, sets Q to the square root with positive leading coefficient and returns 1; otherwise sets Q to zero and returns 0.

Cite this page

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