Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 420 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 420 Bytes

A basic calculator

  1. It takes an infix string, converts it into postfix using the Shunting Yard algorithm by Dijkstra
  2. Does the mathematical calculation on the postfix expression to give you the desired result.

expected character inputs: {, }, [,], (,), 0-9, +, -, *, /, ^

Use the following infix expression examples to test

(300+23)*(43-21)/(84+7)

(4+8)(6-5)/((3-2)(2+2))

25^5/5

And don't use spaces