MathScratch 1.0

  scripts
  sprites
See inside
Instructions

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

Notes and Credits

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

Shared: 12 Jul 2013 Modified: 7 Nov 2013
Favorite this project 4
Love this project 11
Total views 330
View the remix tree  1
  
More projects by Mister_Guacamole