Strategies for simplifying math expressions

You probably want to implement a term rewriting system. Regarding the underlying math, have a look at WikiPedia. Structure of a term rewrite module Since I implemented a solution recently… First, prepare a class CExpression, which models the structure of your expression. Implement CRule, which contains a pattern and a replacement. Use special symbols as … Read more