by Thomas Nijssen
Simple example of a calculator for math expressions. Give it an input like "5+(1-2)" and it will first convert it to Reverse Polish Notation (RPN) «5 1 2 - +» and then evaluate it using a stack. It respects order of operations (PEMDAS - no exponent in this version)
This version only handles addition, subtraction, multiplication, division, and parentheses. Negative numbers don't work yet.
You can use this as an example for how to parse user input.
Reviews and ratings can be submitted in the app.