Consider the calculation as follows :
(where X & Y are variables)
Which of the following represents the correct Reverse Polish notation for that calculation :
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
You can use the Shunting yard algorithm to get the answer :
which is : 2 X 3 + * Y 9 + /
If you are in doubt :
2 X * 3 + Y / 9 + : is Y 3 X + 2 + 9 and 2 X + 3 * Y 9 + / is Y + 9 ( 2 + X ) ∗ 3