Skip to content

Basic maths parser in C#. It can do + - * / operations as well as correctly evaluates brackets. It first converts the infix notation into RPN before evaluation.

Notifications You must be signed in to change notification settings

Dodecahedrane/Basic-Maths-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Basic-Maths-Parser

Basic maths parser in C# I wrote to solve a coursework problem in Year 1 COMP1000 Software Engineering. It can do + - * / operations as well as correctly evaluates brackets. It first converts the infix notation into RPN before evaluation.

It will evaluate a divide by 0 to infinity

First it converts the infix notation to reverse polish notation and thne uses the shunting yard algorithm to evaluate RPN expresions. Explination of shunting yard here

Features to add at some point:

  • Powers
  • Roots
  • Trig Functions

About

Basic maths parser in C#. It can do + - * / operations as well as correctly evaluates brackets. It first converts the infix notation into RPN before evaluation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages