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
1.
5 * 8 / 2 ^ 2 + 4 * 6 = ((5 * 8) / (2 ^ 2)) + (4 * 6)
Prefix notation: + / * 5 8 ^ 2 2 * 4 6
Postfix notation: 5 8 * 2 2 ^ / 4 6 * +
2.
* * + 2 5 * 9 0 ^ 3 2
= * * 7 0 9
= * 0 9
= 0
3.
5 6 * 3 5 * - 2 2 ^
= 30 15 - 4
= 15 4