Convert infix expressions to prefix and postfix notations
Enter a standard mathematical expression (infix notation) to see its equivalent in Polish (Prefix) and Reverse Polish (Postfix) notations. Supports operators +, -, *, /, ^ and parentheses.
A B +
, the +
applies to the two most recent operands, A and B. You cannot write + A B
and expect it to be evaluated the same way as postfix.(A AND B) OR C
can be written in prefix as OR (AND A B) C
or in postfix as A B AND C OR
.