FLINT3.7.0-dev

fmpq_mpoly_get_fmpq_poly

Synopsis#include <flint/fmpq_mpoly.h>
int fmpq_mpoly_get_fmpq_poly(fmpq_poly_t A, const fmpq_mpoly_t B, slong var, const fmpq_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 the degree does not fit an slong.

Cite this page

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