fmpq_poly_xgcd
Synopsis
#include <flint/fmpq_poly.h>void fmpq_poly_xgcd(fmpq_poly_t G, fmpq_poly_t S, fmpq_poly_t T, const fmpq_poly_t A, const fmpq_poly_t B)sourceComputes polynomials , , and such that , where is the monic greatest common divisor of and .
The outputs , , must be distinct objects (an exception is raised otherwise). Corner cases are handled as follows. If , returns . If , , returns the suitable scalar multiple of , , and . The case when , is handled similarly.
Cite this page
The FLINT team, “fmpq_poly_xgcd (fmpq_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpq_poly/fmpq_poly_xgcd.html (generated 2026-11-02).
@misc{flint-doc-fmpq-poly-fmpq-poly-xgcd,
author = {{The FLINT team}},
title = {{fmpq\_poly\_xgcd (fmpq\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpq_poly/fmpq_poly_xgcd.html},
note = {Generated 2026-11-02}
}