Reverse Polish notation calculator
Info (click to close)
- Newlines and spaces seperate words.
- Words can be numbers or operators.
A number is any PHP numerically parsable string, i.e. most things work.
This will be pushed to the stack.
An operator is either one of
+-*/%. You know how those work, you know primary school math. (okay well maybe not for
They assume some numbers on the stack, pop them, and push the result.
- See more at Wikipedia.
Also known as: Łukasiewicz notation, Polish postfix notation, postfix notation.
May or may not work.