I am preparing for an exam where i couldn\'t understand the convertion of infix notation to polish notation for the below expression:
(a–b)/c*(d + e – f / g)
step 1: (a-b)/c*(d+e- /fg))
(a-b)/c*(d+e- /fg))
step 2: (a-b)/c*(+de - /fg)
(a-b)/c*(+de - /fg)
step 3: (a-b)/c * -+de/fg
(a-b)/c * -+de/fg
Step 4: -ab/c * -+de/fg
-ab/c * -+de/fg
step 5: /-abc * -+de/fg
/-abc * -+de/fg
step 6: */-abc-+de/fg
*/-abc-+de/fg
This is prefix notation.