Enter an expression you would like to evaluate (like 2+2). The calculator will output the answer below. Implemented operations: Addition ( + ) Substraction ( - ) Multiplication ( * ) Division ( / ) Modulo ( % ) Exponentiation ( ^ ) Factorial ( ! ) Example : "2*(3-4^2)" will yeld approx. "-26". The result is often approx. because some calculations use floating point numbers
This is a text-based calculator I did. It can interpret the input by converting it into a postfix form using the Shunting-yard algorithm before reading the resulting conversion. http://en.wikipedia.org/wiki/Shunting-yard_algorithm http://scriptasylum.com/tutorials/infix_postfix/algorithms/postfix-evaluation/index.htm