/Calculator

Simple calculator

Primary LanguageC#

Simple calculator

About

Simple calculator. Operations: + - / *

Examples

  • 2+2
  • 1+2-3
  • (1.2+1)-3
  • 1/2+((3+4)*4)/(12+3)

Class

  • RevPolNotation
    • Convert input mathematical expression to RPN notation
  • ExpresionExceptions
    • For handling errors
  • Constants
    • In this class contains constants for application
    • SIMPLE_OPERATORS = "+-*/()"
  • PrepInputExpression
    • Class for cheked simple errors in expression
  • CalculateRevPolNotation
    • Class for calculate expression in RPN notation

Example of use

  • For console app - link
  • Screenshots
    • 1
    • 2