Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 553 Bytes

File metadata and controls

20 lines (17 loc) · 553 Bytes

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