Skip to content

Basicv calculator, which goes up to multiplication and division. Training for algorithm, tree implementation and unit testing.

Notifications You must be signed in to change notification settings

mirax87/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator

A basic command-line calculator to add, subtract, multiply and divided numbers.

Usage

> python Calculator.py "<operations>"

Example

> python Calculator.py "5+3"
8

How does it compute the results?

The calculator takes infix notation and converts it to a postfix notation using the Shunting Yard algorithm. The postfix notation is then converted into a tree structure, which recursively evaluates the nodes and thereby computes the results.

Keywords

calculator, expression trees, algorihtm implementation, unittesting, python module packaging, python2, python

About

Basicv calculator, which goes up to multiplication and division. Training for algorithm, tree implementation and unit testing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages