FLINT3.7.0-dev

_fmpq_poly_lcm

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

Computes the monic least common multiple L of A and B.

Assumes that L has space for \operatorname{len}(A) + \operatorname{len}(B) - 1 coefficients, where \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_lcm (fmpq_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpq_poly/_fmpq_poly_lcm.html (generated 2026-10-20).