Skip to content

BorderKeeper/ArithmeticCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArithmeticCalculator

Command line arithmetic calculator for school exam

Simple tool to solve any valid arithmetic function you throw at it. Includes function support. Example run: ArithmeticCalculator.exe "sin(1+2) * max(3/4,5*6) - 11" For testing flip the macro TEST in main.cpp from false to true and check the ArithmeticCalculatorTestBase.cpp

Operators supported: +,-,*,/

Functions supported:

  • sin(x)
  • cos(x)
  • tan(x)
  • log(x)
  • exp(x)
  • sqrt(x)
  • min(x,y)
  • max(x,y)
  • nsd(x,y) - Greatest Common Divisor
  • nsn(x,y) - Least Common Denominator

About

Command line arithmetic calculator for school exam

Resources

License

Stars

Watchers

Forks

Packages

No packages published