Problem with evaluation expressions with exponents

nameVoid
Messages
238
Reaction score
0
The way i am evaluating post fix expressions is not working with exponents

Example
InfixII
3*(4^2-2/3)+4
To post fix
342^*23/-4+

=16*3-2/3)+4

Am i evaluating the parenthesis the wrong way
 
Physics news on Phys.org
Yes, you first need to evaluate 4^2 - 2/3. Then multiply that by 3.
 

Similar threads

Back
Top