FLINT3.7.0-dev

_fmpq_poly_primitive_part

Synopsis#include <flint/fmpq_poly.h>
void _fmpq_poly_primitive_part(fmpz * rpoly, fmpz_t rden, const fmpz * poly, const fmpz_t den, slong len)source

Sets (rpoly, rden, len) to the primitive part, with non-negative leading coefficient, of (poly, den, len). Assumes that len > 0. Supports aliasing between the two polynomials.

Cite this page

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