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+cd
-> =e-a÷b+cd



মন্তব্যসমূহ

এই ব্লগটি থেকে জনপ্রিয় পোস্টগুলি

LINEAR ALGEBRA (Part-2) - Multiplying Matrices

What Is derivative? (Part - 1)

LINEAR ALGEBRA (Part-1) - Scalars, Vectors, Matrices and Tensors