FLINT3.7.0-dev

_gr_poly_evaluate, gr_poly_evaluate

Synopsis#include <flint/gr_poly.h>
int _gr_poly_evaluate(gr_ptr res, gr_srcptr poly, slong len, gr_srcptr x, gr_ctx_t ctx)source
int gr_poly_evaluate(gr_ptr res, const gr_poly_t poly, gr_srcptr x, gr_ctx_t ctx)source

Sets res to f(x) for x \in R. This calls the ring method GR_METHOD_POLY_EVALUATE, whose default gr_generic_poly_evaluate uses Horner's rule; nmod, fq, fq_nmod and fq_zech override it with the evaluation of their polynomial modules.

Cite this page

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