FLINT3.7.0-dev

gr_get_fexpr, gr_get_fexpr_serialize, gr_set_fexpr

Synopsis#include <flint/gr.h>
int gr_get_fexpr(fexpr_t res, gr_srcptr x, gr_ctx_t ctx)source
int gr_get_fexpr_serialize(fexpr_t res, gr_srcptr x, gr_ctx_t ctx)source
int gr_set_fexpr(gr_ptr res, fexpr_vec_t inputs, gr_vec_t outputs, const fexpr_t x, gr_ctx_t ctx)source

Convert between elements and symbolic expressions (fexpr). The serialize version may produce an expression of the internal representation that is not meant to be read by humans, but that gr_set_fexpr converts back exactly. gr_set_fexpr evaluates the expression in the ring; inputs and outputs are a dictionary of symbols and their values (initially empty, also used as scratch space). These functions are declared only if fexpr.h was included before gr.h.

Cite this page

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