eqdisco.simplify.merge_parameters#

eqdisco.simplify.merge_parameters(model)[source]#

Merge the parameters of every addition chain and multiplication chain into one.

2*(3.5*x) becomes 7*x and (x + 1.2) - 0.7 becomes x + 0.5. Fixed constants (e.g. exponents) are kept. The model’s function is unchanged.