think of it this way -each operator, operates on the previous 2 operands - decompose from there
a)
8 2 + 3 × 16 4 / - =
starting left to right get operator +, previous 2 operands are 8 & 2 so we have (8+2) this is now considered an operand so we have
(8 + 2) 3 × 16 4 / - =
starting left to right 1st operator is x, the previous opeands are (8+2) and 3 so we now have
((8+2)x3) as the first operand
now have
((8+2)x3) 16 4 / - =
starting on the left 1st operator is / last 2 operands are 16 and 4, combine thes to make the operand (16/4)
now have
((8+2)x3) (16/4) -=
starting on the left first operator is - so now have
((8+2)x3)- (16/4) =
which is in highly parenthesied infix notation which evaluates to 30-4=26
solution :
( 8 + 2 ) * 3 - ( 16 / 4 )
so, The answer is = 26
but I don't know how to solve this experssions !!
c)
70 14 4 5 15 3 / × - - / 6 + =
same as above 1st step gives us
70 14 4 5 (15 / 3) × - - / 6 + =
second step
70 14 4 (5 × (15 / 3) ) - - / 6 + =
next
70 14 (4 - (5 × (15 / 3) ) ) - / 6 + =
next
70 (14 - (4 - (5 × (15 / 3) ) ) ) / 6 + =
(70 / (14 - (4 - (5 × (15 / 3) ) ) ) ) 6 + =
(70 / (14 - (4 - (5 × (15 / 3) ) ) ) ) + 6 =
If I did the math right this evaluates to 16 not 8, the infix is correct
The answer is: 8
d)
3 5 6 × + 13 - 18 2 / + =
repeating as above
3 (5 × 6) + 13 - 18 2 / + =
(3 + (5 × 6) ) 13 - 18 2 / + =
((3 + (5 × 6) ) - 13 ) 18 2 / + =
((3 + (5 × 6) ) - 13 ) (18 / 2 ) + =
((3 + (5 × 6) ) - 13 ) + (18 / 2 ) =
The answer is: 29