FLINT3.7.0-dev

gr_poly_length

Synopsis#include <flint/gr_poly.h>
slong gr_poly_length(const gr_poly_t poly, gr_ctx_t ctx)source

Returns the length of poly, that is one more than the index of the leading stored coefficient, or 0 for the zero polynomial. Over rings with undecidable equality this bounds the degree plus one.

Guides#

Cite this page

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