FLINT3.7.0-dev

fexpr_depth

Synopsis#include <flint/fexpr.h>
slong fexpr_depth(const fexpr_t expr)source

Returns the depth of expr as a tree: 1 for an atom, and one more than the largest depth of the function and the arguments for a call.

Guides#

Cite this page

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