Shunting-yard is an algorithm used to calculate results of mathematical expressions respecting the operator precedence by previously converting them to RPN (reverse Polish notation). When you click the green flag, you will be asked to type an expression. Currently these operations are recognized: + addition - substraction * multiplication / division ^ exponentation Of course you can combine them (that is in fact the whole point). Example: 251+2^3*92 This should output 987. One more thing: at the moment the algorithm doesn't support operations with negative numbers like -4+3
You can read about this algorithm or the reverse polish notation on wikipedia: https://en.wikipedia.org/wiki/Shunting-yard_algorithm https://en.wikipedia.org/wiki/Reverse_Polish_notation To do list: - support for negative numbers - more functions: trigonometry, abs, mod, log