Skip to content

HarryGogonis/Cpp-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

C++ Calculator

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:

Install using package manager
sudo apt-get install libpcre3
Install from source
  1. Download the latest version here

  2. Extract the files

    tar -zxf pcre-833.tar.bz2

  3. Build the source code

    ./configure

    make

    make install

Installing/Running Calculator

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages