Convert 5 * 8 / 2 ^ 2 + 4 * 6 to postfix and prefix notation
Evaluate the prefix expression: * * + 2 5 * 9 0 ^ 3 2
Evaluate the postfix expression: 5 6 * 3 5 * - 2 2 ^ *
BONUS: Find the value of X (this time there is only 1 answer!) in the following postfix equation:
5 6 - X * 2 + = -7
Convert 5 * 8 / 2 ^ 2 + 4 * 6 to postfix and prefix notation
postfix = 5 8 * 2 / 2 ^ 4 6 * +
prefix = + ^ / * 5 8 2 2 * 4 6
Evaluate the prefix expression: * * + 2 5 * 9 0 ^ 3 2
= * * 7 0 1 = * 0 1 = 0
Evaluate the postfix expression: 5 6 * 3 5 * - 2 2 ^ *
= 30 3 5 * - 0 * = 30 15 - 0 * = 15 0 * = 0
BONUS: Find the value of X (this time there is only 1 answer!) in the following postfix equation:
5 6 - X * 2 + = -7
==> -1 X * 2 + = -X 2 + = -X +2 = -7
==> X = 2 + 7 = 9
Jerry