Skip to content

An object orientied, tree based, calculator that was built around a recursive descent parser for arithmetical expressions

License

Notifications You must be signed in to change notification settings

chrk123/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calculator

An object orientied, tree based, calculator that was built around a recursive descent parser for arithmetical expressions

It is written in C++11 and currently supports the following operations:

binary operators: +,*,-,/,^
unary operators: +,-,!(postfix)
functions: sin,cos,tan,asin,acos,atan,sinh,cosh,tanh,log,log[BASE],sqrt

Examples

=> 2+4*3
== 14

=> asin sin 0.5
== 0.5

=> (2+4)*3
== 18

=> sin(1.57079)
== 1

=> log[2](2^10)
== 10

=> (log[3.6](10) + 43*3 - atan(0.5)) / 2
== 65.167

About

An object orientied, tree based, calculator that was built around a recursive descent parser for arithmetical expressions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published