-
Notifications
You must be signed in to change notification settings - Fork 1
Design
Adam Dernis edited this page May 24, 2020
·
5 revisions
"Calc" is built in 3 separate parts.
Parsing converts a string equation (ex. 3x+(5x+6x+8xy)
) to an Expression Tree that can be understood and modified more easily by code.
Simplification is a recursive function on each branch of the expression tree. This is where all the math happens.
Printing takes the Expression Tree and converts it back into a string for easy reading.