1. Not finding help here? Sign up for a free 30min 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!

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.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: Problem with evaluation expressions with exponents
  1. Matrix to an exponent (Replies: 5)

Loading...