Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

RPn algorithm and easy calculator

Edsger Dijkstra algorithm for Reverse Polish notation (Postfix notation).

Implemented basic operations such as

  • a plus (+)
  • minus (-)
  • multiplication (*)
  • division (/)
  • exponentiation (^)

Compilation and launch

Just use the g++ compiler

$ g++ code.cpp -o app.out
$ ./app.out

About RPn

Reverse Polish notation (RPN), also known as Polish postfix notation or simply postfix notation, is a mathematical notation in which operators follow their operands, in contrast to Polish notation (PN), in which operators precede their operands.

  • Example:
infix:  ((15 ÷ (7 − (1 + 1))) × 3) − (2 + (1 + 1))
postfix: 15 7 1 1 + − ÷ 3 × 2 1 1 + + −

More info on Wiki.

About

Postfix calculator

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages