FLINT3.7.0-dev

gr_fmpz_mpoly_evaluate_iter, gr_fmpz_mpoly_evaluate_horner, gr_fmpz_mpoly_evaluate

Synopsis#include <flint/gr_generic.h>
int gr_fmpz_mpoly_evaluate_iter(gr_ptr res, const fmpz_mpoly_t pol, gr_srcptr x, const fmpz_mpoly_ctx_t mctx, gr_ctx_t ctx)source
int gr_fmpz_mpoly_evaluate_horner(gr_ptr res, const fmpz_mpoly_t pol, gr_srcptr x, const fmpz_mpoly_ctx_t mctx, gr_ctx_t ctx)source
int gr_fmpz_mpoly_evaluate(gr_ptr res, const fmpz_mpoly_t f, gr_srcptr x, const fmpz_mpoly_ctx_t mctx, gr_ctx_t ctx)source

Set res to the value of the multivariate integer polynomial f (with context mctx) at the vector of values x, one entry for each variable: term by term, or by a multivariate Horner scheme that chooses the variable to factor out greedily; gr_fmpz_mpoly_evaluate uses the first method for polynomials with at most one term and word-size exponents and the second otherwise. Declared only if fmpz_mpoly.h is included first.

Cite this page

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