FLINT3.7.0-dev

_fmpq_poly_gcd

Synopsis#include <flint/fmpq_poly.h>
void _fmpq_poly_gcd(fmpz * G, fmpz_t denG, const fmpz * A, slong lenA, const fmpz * B, slong lenB)source

Computes the monic greatest common divisor GG of AA and BB.

Assumes that GG has space for len⁡(B)\operatorname{len}(B) coefficients, where len⁡(A)≥len⁡(B)>0\operatorname{len}(A) \geq \operatorname{len}(B) > 0.

Aliasing between the output and input arguments is not supported.

Does not support zero-padding.

Cite this page

The FLINT team, “_fmpq_poly_gcd (fmpq_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpq_poly/_fmpq_poly_gcd.html (generated 2026-11-02).