This is a simple calculator that attempts to solve basic mathematic expressions in simplified form, without using floats or doubles.
##Dependancies
####PCRE - http://pcre.org/
###Instructions for installing PCRE:
sudo apt-get install libpcre3
-
Download the latest version here
-
Extract the files
tar -zxf pcre-833.tar.bz2
-
Build the source code
./configure
make
make install
cd /path/to/dir
make
./Calc
##Syntax
Tokens must be seperated by a space.
Example of valid input:
3 + 4 * 2 / ( 1 - 5 ) ^ 2 ^ 3
1/2 + 3/2
log_2:2 + 1
2rt:16
##Bugs/Errors
- Fails to simplify some complex cases.