Use the operators + - * / ^ to add, subtract, multiply, divide, and exponentiate. Use parenthesis () to set precedence.
1 + 2 = 3
-1 / 2 = -0.5
2 + 3 * 4 = 14
(2 + 3) * 4 = 20
5^2 = 25
This calculator uses the shunting yard algorithm to parse the input string given in infix notation and convert it into a postfix stack based representation. The calculator then performs the computations off the stack until the final answer remains.