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 LL of AA and BB.

Assumes that LL has space for len⁡(A)+len⁡(B)−1\operatorname{len}(A) + \operatorname{len}(B) - 1 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_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-11-02).