eqdisco.models.enumerate_expressions#
- eqdisco.models.enumerate_expressions(pset, max_size, max_params=3, prune_nesting=True, max_candidates=200000)[source]#
All canonical expressions with at most
max_sizenodes.Pruning rules: arguments of commutative functions are ordered; no function has only constant arguments (a constant subtree is a single parameter); no
a - aora / a; no directly nested inverse pairs (exp(log(.))); withprune_nestingno transcendental function directly inside another; at mostmax_paramsparameters.
Examples using eqdisco.models.enumerate_expressions#
The size of the search space and the meaning of complexity
The size of the search space and the meaning of complexity