mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
* Improve standard simplify rule matches in non-commutative contexts Addresses the rule application limitation aspect as highlighted in issue #2825; such that a broader set of successful standard replacement rules are applied to multi-arg/associative expressions in non-commutative contexts. * Remove 'clone()' operations on expanded simplify rules since original rule nodes (including expanded variations) are essentially readonly objects, cloning of expanded rule LHS' is unnecessary during canonicalization * Hoist non-commutative context expanded rule app. in simplify (applyRule) * Add two simplify non-commutative ctx. test cases