Meta Calculator > Learning Labs > How to Bulid Scientific Calculator

Meta Calculator

Infix to Postfix Convertor

The convertor below takes an infix mathematical expression and converts into to postfix (rpn) form. Although this convertor does the work directly in the browser, you can download the java source code here to see how it could be done in Java. Look for the infixToPostfix() method which takes an input String representing a mathematical expression in infix form and returns the equivalent expression as an ArrayList in postfix form .
Enter a number or type an operand:
Expression as Infix