fmpz_mpoly_to_fmpz_poly, fmpz_mpoly_from_fmpz_poly
Synopsis
#include <flint/fmpz_mpoly.h>void fmpz_mpoly_to_fmpz_poly(fmpz_poly_t poly1, slong * poly1_shift, const fmpz_mpoly_t poly2, slong var, const fmpz_mpoly_ctx_t ctx)sourcevoid fmpz_mpoly_from_fmpz_poly(fmpz_mpoly_t poly1, const fmpz_poly_t poly2, slong shift2, slong var, const fmpz_mpoly_ctx_t ctx)sourceConvert between a polynomial in the single variable var and a univariate polynomial with a shift: the first sets poly1 and *poly1_shift so that poly2 equals \mathit{poly1}(x) x^{\mathit{shift}} (it throws for multiprecision exponents), and the second sets poly1 to \mathit{poly2}(x_{\mathit{var}}) x_{\mathit{var}}^{\mathit{shift2}}.
Cite this page
The FLINT team, “fmpz_mpoly_to_fmpz_poly, fmpz_mpoly_from_fmpz_poly (fmpz_mpoly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_mpoly/fmpz_mpoly_to_fmpz_poly.html (generated 2026-10-20).
@misc{flint-doc-fmpz-mpoly-fmpz-mpoly-to-fmpz-poly,
author = {{The FLINT team}},
title = {{fmpz\_mpoly\_to\_fmpz\_poly, fmpz\_mpoly\_from\_fmpz\_poly (fmpz\_mpoly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_mpoly/fmpz_mpoly_to_fmpz_poly.html},
note = {Generated 2026-10-20}
}