FLINT3.7.0-dev

fmpz_mpoly_set_fmpz_poly, fmpz_mpoly_set_gen_fmpz_poly

Synopsis#include <flint/fmpz_mpoly.h>
void fmpz_mpoly_set_fmpz_poly(fmpz_mpoly_t A, const fmpz_poly_t B, slong v, const fmpz_mpoly_ctx_t ctx)source
void fmpz_mpoly_set_gen_fmpz_poly(fmpz_mpoly_t res, slong var, const fmpz_poly_t pol, const fmpz_mpoly_ctx_t ctx)source

Set the multivariate polynomial to the univariate polynomial B (or pol) in the variable of index v (or var). The second version throws if the context has no variables.

Cite this page

The FLINT team, “fmpz_mpoly_set_fmpz_poly, fmpz_mpoly_set_gen_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_set_fmpz_poly.html (generated 2026-10-20).