FLINT3.7.0-dev

qqbar_evaluate_fmpz_mpoly

Synopsis#include <flint/qqbar.h>
int qqbar_evaluate_fmpz_mpoly(qqbar_t res, const fmpz_mpoly_t poly, qqbar_srcptr x, slong deg_limit, slong bits_limit, const fmpz_mpoly_ctx_t ctx)source

Sets res to the value of the multivariate polynomial poly at the algebraic numbers x (one per variable of ctx) and returns 1. If a temporary result (not necessarily the final value, in case of cancellation) exceeds deg_limit or bits_limit in the sense of qqbar_binop_within_limits, the evaluation is aborted and 0 is returned. The evaluation uses the generic multivariate Horner scheme gr_fmpz_mpoly_evaluate_horner over the \overline{\mathbb{Q}} context (gr_fmpz_mpoly_evaluate_iter for a single term).

Guides#

Cite this page

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