FLINT3.7.0-dev

fq_poly_xgcd

Synopsis#include <flint/fq_poly.h>
void fq_poly_xgcd(fq_poly_t G, fq_poly_t S, fq_poly_t fq, const fq_poly_t A, const fq_poly_t B, const fq_ctx_t ctx)

Computes the monic GCD G of A and B and cofactors S, T (the argument named fq) with SA + TB = G, where \deg S < \deg B - \deg G and \deg T < \deg A - \deg G when both are nonzero. The GCD of two zero polynomials is zero, with zero cofactors. G, S and T must be distinct objects.

Cite this page

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