fexpr_arithmetic_nodes
Synopsis
#include <flint/fexpr.h>void fexpr_arithmetic_nodes(fexpr_vec_t nodes, const fexpr_t expr)sourceSets nodes to the subexpressions of expr that are the leaves when expr is viewed as an arithmetic expression: expr is built from integers and the elements of nodes by nested applications of Pos, Neg, Add, Sub, Mul, Div and Pow with an integer exponent. Each node appears once; the nodes are not sorted.
Cite this page
The FLINT team, “fexpr_arithmetic_nodes (fexpr.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fexpr/fexpr_arithmetic_nodes.html (generated 2026-10-20).
@misc{flint-doc-fexpr-fexpr-arithmetic-nodes,
author = {{The FLINT team}},
title = {{fexpr\_arithmetic\_nodes (fexpr.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fexpr/fexpr_arithmetic_nodes.html},
note = {Generated 2026-10-20}
}