Skip to content
/ ONP Public

Reverse Polish Notation impementation for C++

License

Notifications You must be signed in to change notification settings

Hoodster/ONP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ONP

Reverse Polish Notation impementation for C++.
Do you want to know what RPN is? Click here and read more about it.

Problem

Reverse Polish notation is a easier way to write a mathematical equation by not parenthesized expressions. It's also common calculator type in computing because no bracets are needed.

Solution

Program gets all equation input in reverse Polish notation and prints computed result.

How to use it

1. Adding expresson

  1. Write number (double type is supported) or math opeartion symbol (+,-,*,/)
  2. Click ENTER

2. Computing RPN equation

  1. Write equation symbol [=]
  2. Click ENTER

Sample

For ((2+7)/3+(14-3)*4)/2

((2+7)/3+(14-3)*4)/2 => 2 7 + 3 / 14 3 - 4 * + 2 /

Result:


Result is 23.5.

Implementation:


Each number or char in separate row. Result is 23.5.

About

Reverse Polish Notation impementation for C++

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published