FLINT3.7.0-dev

fexpr_expanded_normal_form

Synopsis#include <flint/fexpr.h>
int fexpr_expanded_normal_form(fexpr_t res, const fexpr_t expr, ulong flags)source

Sets res to the expanded normal form of expr as a formal rational function of its non-arithmetic subexpressions, and returns 1 (0 on failure, see fexpr_get_fmpz_mpoly_q). The nodes are found with fexpr_arithmetic_nodes and sorted with fexpr_cmp_fast, expr is converted with fexpr_get_fmpz_mpoly_q and converted back with fexpr_set_fmpz_mpoly_q. flags is reserved and should be 0.

Guides#

Cite this page

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