FLINT3.7.0-dev

gr_poly_deflation, gr_poly_deflate

Synopsis#include <flint/gr_poly.h>
ulong gr_poly_deflation(const gr_poly_t poly, gr_ctx_t ctx)source
int gr_poly_deflate(gr_poly_t res, const gr_poly_t poly, ulong deflation, gr_ctx_t ctx)source

gr_poly_deflation returns the largest m such that f = g(x^m) for a polynomial g: 0 for f = 0, 1 for a nonzero constant, and n for a monomial c x^n with n \ge 1. A coefficient that is not provably zero counts as nonzero, so the value is always valid but need not be maximal over inexact rings. gr_poly_deflate sets res to g given m \ge 1 (GR_DOMAIN for m = 0); f is assumed to have this form.

Cite this page

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