FLINT3.7.0-dev

fmpq_poly_fit_length

Synopsis#include <flint/fmpq_poly.h>
void fmpq_poly_fit_length(fmpq_poly_t poly, slong len)source

If len is greater than the number of coefficients currently allocated, then the polynomial is reallocated to have space for at least len coefficients, at least doubling the allocation so that many calls in small increments are efficient. No data is lost.

Cite this page

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