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!

Log Function and Exponent Precedence

  1. Apr 10, 2013 #1
    1. The problem statement, all variables and given/known data

    This isn't really a specific problem, just a question if hand-writing log functions (or trig functions) is interpreted differently than when typing them into a calculator or something like Wolfram Alpha.

    Suppose you have this on paper:

    ln ex

    Is this the same as both of the expressions below?

    ln (ex)

    ln (e)x

    This is what you get, when you enter what I think are equivalent expressions to each of those, onto a calculator (or wolfram)

    ln (e^x) ===> x

    ln (e^1)^x ===> 1

    But I guess my question is, is this really the way you'd interpret the above expressions, if you saw them written out?

    I thought that if you wanted the ln function taken to a power, you'd write these, for example:

    (ln e)x

    lnxe

    If you do something similar with sine, then wolfram and my TI-82 calculator differ in their interpretations:

    sin(pi/4)^2 =

    .5 (according to wolfram)

    .5785... (according to ti-82)

    I'm wondering if this is a case where there isn't really one specified standard, or if I'm doing something wrong?


    Any insight will be appreciated, thank you!
    1. The problem statement, all variables and given/known data



    2. Relevant equations



    3. The attempt at a solution
     
  2. jcsd
  3. Apr 10, 2013 #2

    Curious3141

    User Avatar
    Homework Helper

    The short answer is: avoid ambiguous expressions. Even if you think precedence is well-established, misunderstandings can occur. Use parentheses freely, or just arrange the expression more intelligently.
     
  4. Apr 10, 2013 #3

    Mark44

    Staff: Mentor

    I don't see that the two expressions above are different, unless you mean the second to be (ln e)x.
    It looks like wolfram and TI have different rules for determining operator precedence. As Curious3141 says, the best thing to do is to write expressions unambiguously so that there will be no confusion. For your trig example, here's what I mean:
    [sin(pi/4]]2 vs. sin((pi/4)2).
     
  5. Apr 10, 2013 #4
    Totally makes sense, thanks!

    This was actually a question posed to me by someone else, and I tried to say something similar to what you both did, but you both said it so much better. Thanks again!
     
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: Log Function and Exponent Precedence
Loading...