1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Problem with evaluation expressions with exponents

  1. Mar 23, 2013 #1
    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
     
  2. jcsd
  3. Mar 23, 2013 #2

    CompuChip

    User Avatar
    Science Advisor
    Homework Helper

    Yes, you first need to evaluate 4^2 - 2/3. Then multiply that by 3.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Loading...