tssovi / ReversePolishNotationCalculator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reverse Polish Notation Calculator

What is Reverse Polish Notation?

Reverse Polish Notation (RPN) is a method for representing expressions in which the operator symbol is placed after the arguments being operated on.

How My Script Will Execute?

I used python3 for this script.
Terminal Command

python3 ReversePolishNotationCalculator.py

Tested Inputs:


5 0 /
3 4 2 * 1 5 - 2 3 ^ ^ / +
70 11 * 5 / 219 + 28 26 6 - 6 - / * 448 7 * sqrt +
1.3 7.9 + 2.8 * 3.0 / .75 - sqrt 3 ^
5 8 2 15 * sin * + 2 45 tan + /
3 2 * 8 60 cos * + 3 4 ^ 0.5 * 1 - /

My Terminal Screen Shot

Terminal Screen Shot

About


Languages

Language:Python 100.0%