News for hackers. Stuff that matters.
Re:A Handwritten Math Parser in 100 lines of Python by westurner on Thursday September 17, 2020 @10:13AM (#24504857)
Reverse Polish notation (RPN) > Converting from infix notation https://en.wikipedia.org/wiki/Reverse_Polish_notation#Conver... > Shunting-yard algorithm https://en.wikipedia.org/wiki/Shunting-yard_algorithm

Infix notation supports parentheses.

Infix notation: 3 + 4 × (2 − 1)

RPN: 3 4 2 1 − × +

There are no comments on this comment yet.