Reverse Polish Notation & Polish Notation
Reverse Polish Notation -> Take e = a – b ÷ ( c + d ) -> Lets convert it into Reverse Polish Notation -> ( c + d ) will be cd+ and Let p = cd+ -> e = a – b ÷ p -> b ÷ p will be bp÷ and Let q = bp÷ -> e = a – q -> a – q will be aq- and Let r = aq- -> e = r -> e = r will be er= and let s = er= -> s -> Lets put the values back -> s will be er= -> er= will be eaq-= -> eaq-= will be eabp÷-= -> eabp÷-= will be eabcd+÷-= -> eabcd+÷-= Polish Notation -> Take e = a – b ÷ ( c + d ) -> Lets convert it into Polish Notation -> ( c + d ) will be +cd and Let p = +cd -> e = a – b ÷ p -> b ÷ p will be ÷ bp and Let q = ÷ bp -> e = a – q -> a – q will be -aq and Let r = -aq -> e = r -> e = r will be =er and let s = =er -> s -> Lets put the values back -> s will be =er -> =er will be =e-aq -> =e-aq will be =e-a÷bp -> =e-a÷bp will be =e-a÷b...