at the end of the new frontend convert nested binary expressions of the same operator type to one multary expression
only for commutative operators
expand NFExpression.toDAE() such that it converts them back to the old nested binaries
[NB]
add differentiation rules for multary expressions
advantages for simplification and differentiation and symbolic manipulation in general
Example:
Instead of having BINARY(BINARY(a, +, b), +, BINARY(c, +, d)) we will have MULTARY({a,b,c,d}, +) which is a way more compact way of representing it.
[NF]
expand NFExpression.toDAE() such that it converts them back to the old nested binaries
[NB]
Example: Instead of having
BINARY(BINARY(a, +, b), +, BINARY(c, +, d))
we will haveMULTARY({a,b,c,d}, +)
which is a way more compact way of representing it.