FLINT3.7.0-dev

fmpz_mpoly_get_fmpz_poly

Synopsis#include <flint/fmpz_mpoly.h>
int fmpz_mpoly_get_fmpz_poly(fmpz_poly_t A, const fmpz_mpoly_t B, slong var, const fmpz_mpoly_ctx_t ctx)source

Sets A to B as a univariate polynomial in the variable of index var, and returns 1. Returns 0 if B involves another variable or a degree does not fit an slong.

Cite this page

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