A string of numbers and letters joined together by mathematical operations such as \(+\) and \(-\) is called an algebraic expression, for example \(r + 2s\). Suppose that \({g}\) is the cost of ...
Parsing algebraic expressions is always a pain ... If that was too fast, read the post which has a nice flowchart and an example step-by-step parse of 1+2-3*4+5/6^7-8*9. Towards the bottom ...