What is a/b/c/d? That is: What is the correct order for multiple consecutive division operations? [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite













This question already has an answer here:



  • What is 48÷2(9+3)? [duplicate]

    4 answers



Unlike with addition, subtraction and multiplication where the order of operations will lead to an unambiguous result when the rules of BIDMAS (or PEMDAS) are applied, this does not hold true for division.



For example: 5 + 3 x 5 x 7 - 2 = 5 x 7 x 3 + 5 - 2 = -2 + 5 + 7 x 5 x 3



Of course, BIDMAS states we must group our multiplications together but within that grouping the order of multiplications makes no difference to the result. Furthermore, following the rules of BIDMAS and performing the multiplications first, the subsequent order of the arithmetic also makes no difference. Right?



In the above example, for instance, 3 x 5 x 7 = 105. So: 5 + 105 - 2 = -2 + 105 + 5, etc...



However, operation order DOES affect the result when dividing! For example:



(1/4)/27 does NOT equal 1/(4/27).



We know this, right!



I always took it for granted that the order of operations when presented with multiple divisions must be performed in the order it is presented; ie from left to right. That is what we were taught at kindergarten, right?



So:



a/b/c/d = ((a/b)/c)/d



Right?



Well that's what I believed all my life and took this for granted. But now my sanity is being challenged by Casio's most recent scientific calculators which do not obey this rule!!!!



If you were to type in a/b/c/d into a modern Casio scientific calculator using its fraction key for '/' rather than the division button, the calculator yields a/(b/(c/d))!!!!!



Using the division button instead of the fraction key gives a conflicting (but what I believe to be the correct) answer; that is:



a divided by b divided by c divided by d = ((a divided by b) divided by c) divided by d



I feel sure that the older Casio scientifics (pre 1991) gave the correct result following the rules as I have explained above. But I cannot get hold of one to check my theory.



So my question is: What is the correct order of operation with multiple consecutive divisions? That is, what is the order of division for:



a/b/c/d



as written without any parenthesis? Are the new Casio calculators giving the wrong answer or have I been living a lie?



PS: I am aware that the calculators give what I believe is the correct answer if the right cursor key is pressed after the keying in of each denominator. Bu that is a fudge. By using the right cursor, you are applying implicit parenthesis.



As inputted, either the calculators are giving the wrong answers or I have been living a lie. Can someone please confirm the order of division should indeed be from left to right!



PS: I have searched everywhere I could on the internet and in many maths text books but have not been able to find anything that addresses the ambiguity in the order of multiple consecutive division operations.







share|cite|improve this question













marked as duplicate by Ross Millikan, Jyrki Lahtonen, amWhy, Leucippus, Adrian Keister Jul 29 at 0:47


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • It is $$fracabcd$$
    – Dr. Sonnhard Graubner
    Jul 28 at 19:40






  • 3




    Possible duplicate of What is 48÷2(9+3)? also math.stackexchange.com/questions/2074849/…
    – Ross Millikan
    Jul 28 at 20:07







  • 3




    (Not an answer). No self respecting mathematician would write that expression without including the parentheses s/he wanted to enforce the order. Whatever the usual convention, it would be folly to expect everyone to know it. I suspect the same is true for computer programmers. Rely on explicit specification rather than on what the compiler/interpreter chooses.
    – Ethan Bolker
    Jul 28 at 20:27














up vote
1
down vote

favorite













This question already has an answer here:



  • What is 48÷2(9+3)? [duplicate]

    4 answers



Unlike with addition, subtraction and multiplication where the order of operations will lead to an unambiguous result when the rules of BIDMAS (or PEMDAS) are applied, this does not hold true for division.



For example: 5 + 3 x 5 x 7 - 2 = 5 x 7 x 3 + 5 - 2 = -2 + 5 + 7 x 5 x 3



Of course, BIDMAS states we must group our multiplications together but within that grouping the order of multiplications makes no difference to the result. Furthermore, following the rules of BIDMAS and performing the multiplications first, the subsequent order of the arithmetic also makes no difference. Right?



In the above example, for instance, 3 x 5 x 7 = 105. So: 5 + 105 - 2 = -2 + 105 + 5, etc...



However, operation order DOES affect the result when dividing! For example:



(1/4)/27 does NOT equal 1/(4/27).



We know this, right!



I always took it for granted that the order of operations when presented with multiple divisions must be performed in the order it is presented; ie from left to right. That is what we were taught at kindergarten, right?



So:



a/b/c/d = ((a/b)/c)/d



Right?



Well that's what I believed all my life and took this for granted. But now my sanity is being challenged by Casio's most recent scientific calculators which do not obey this rule!!!!



If you were to type in a/b/c/d into a modern Casio scientific calculator using its fraction key for '/' rather than the division button, the calculator yields a/(b/(c/d))!!!!!



Using the division button instead of the fraction key gives a conflicting (but what I believe to be the correct) answer; that is:



a divided by b divided by c divided by d = ((a divided by b) divided by c) divided by d



I feel sure that the older Casio scientifics (pre 1991) gave the correct result following the rules as I have explained above. But I cannot get hold of one to check my theory.



So my question is: What is the correct order of operation with multiple consecutive divisions? That is, what is the order of division for:



a/b/c/d



as written without any parenthesis? Are the new Casio calculators giving the wrong answer or have I been living a lie?



PS: I am aware that the calculators give what I believe is the correct answer if the right cursor key is pressed after the keying in of each denominator. Bu that is a fudge. By using the right cursor, you are applying implicit parenthesis.



As inputted, either the calculators are giving the wrong answers or I have been living a lie. Can someone please confirm the order of division should indeed be from left to right!



PS: I have searched everywhere I could on the internet and in many maths text books but have not been able to find anything that addresses the ambiguity in the order of multiple consecutive division operations.







share|cite|improve this question













marked as duplicate by Ross Millikan, Jyrki Lahtonen, amWhy, Leucippus, Adrian Keister Jul 29 at 0:47


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • It is $$fracabcd$$
    – Dr. Sonnhard Graubner
    Jul 28 at 19:40






  • 3




    Possible duplicate of What is 48÷2(9+3)? also math.stackexchange.com/questions/2074849/…
    – Ross Millikan
    Jul 28 at 20:07







  • 3




    (Not an answer). No self respecting mathematician would write that expression without including the parentheses s/he wanted to enforce the order. Whatever the usual convention, it would be folly to expect everyone to know it. I suspect the same is true for computer programmers. Rely on explicit specification rather than on what the compiler/interpreter chooses.
    – Ethan Bolker
    Jul 28 at 20:27












up vote
1
down vote

favorite









up vote
1
down vote

favorite












This question already has an answer here:



  • What is 48÷2(9+3)? [duplicate]

    4 answers



Unlike with addition, subtraction and multiplication where the order of operations will lead to an unambiguous result when the rules of BIDMAS (or PEMDAS) are applied, this does not hold true for division.



For example: 5 + 3 x 5 x 7 - 2 = 5 x 7 x 3 + 5 - 2 = -2 + 5 + 7 x 5 x 3



Of course, BIDMAS states we must group our multiplications together but within that grouping the order of multiplications makes no difference to the result. Furthermore, following the rules of BIDMAS and performing the multiplications first, the subsequent order of the arithmetic also makes no difference. Right?



In the above example, for instance, 3 x 5 x 7 = 105. So: 5 + 105 - 2 = -2 + 105 + 5, etc...



However, operation order DOES affect the result when dividing! For example:



(1/4)/27 does NOT equal 1/(4/27).



We know this, right!



I always took it for granted that the order of operations when presented with multiple divisions must be performed in the order it is presented; ie from left to right. That is what we were taught at kindergarten, right?



So:



a/b/c/d = ((a/b)/c)/d



Right?



Well that's what I believed all my life and took this for granted. But now my sanity is being challenged by Casio's most recent scientific calculators which do not obey this rule!!!!



If you were to type in a/b/c/d into a modern Casio scientific calculator using its fraction key for '/' rather than the division button, the calculator yields a/(b/(c/d))!!!!!



Using the division button instead of the fraction key gives a conflicting (but what I believe to be the correct) answer; that is:



a divided by b divided by c divided by d = ((a divided by b) divided by c) divided by d



I feel sure that the older Casio scientifics (pre 1991) gave the correct result following the rules as I have explained above. But I cannot get hold of one to check my theory.



So my question is: What is the correct order of operation with multiple consecutive divisions? That is, what is the order of division for:



a/b/c/d



as written without any parenthesis? Are the new Casio calculators giving the wrong answer or have I been living a lie?



PS: I am aware that the calculators give what I believe is the correct answer if the right cursor key is pressed after the keying in of each denominator. Bu that is a fudge. By using the right cursor, you are applying implicit parenthesis.



As inputted, either the calculators are giving the wrong answers or I have been living a lie. Can someone please confirm the order of division should indeed be from left to right!



PS: I have searched everywhere I could on the internet and in many maths text books but have not been able to find anything that addresses the ambiguity in the order of multiple consecutive division operations.







share|cite|improve this question














This question already has an answer here:



  • What is 48÷2(9+3)? [duplicate]

    4 answers



Unlike with addition, subtraction and multiplication where the order of operations will lead to an unambiguous result when the rules of BIDMAS (or PEMDAS) are applied, this does not hold true for division.



For example: 5 + 3 x 5 x 7 - 2 = 5 x 7 x 3 + 5 - 2 = -2 + 5 + 7 x 5 x 3



Of course, BIDMAS states we must group our multiplications together but within that grouping the order of multiplications makes no difference to the result. Furthermore, following the rules of BIDMAS and performing the multiplications first, the subsequent order of the arithmetic also makes no difference. Right?



In the above example, for instance, 3 x 5 x 7 = 105. So: 5 + 105 - 2 = -2 + 105 + 5, etc...



However, operation order DOES affect the result when dividing! For example:



(1/4)/27 does NOT equal 1/(4/27).



We know this, right!



I always took it for granted that the order of operations when presented with multiple divisions must be performed in the order it is presented; ie from left to right. That is what we were taught at kindergarten, right?



So:



a/b/c/d = ((a/b)/c)/d



Right?



Well that's what I believed all my life and took this for granted. But now my sanity is being challenged by Casio's most recent scientific calculators which do not obey this rule!!!!



If you were to type in a/b/c/d into a modern Casio scientific calculator using its fraction key for '/' rather than the division button, the calculator yields a/(b/(c/d))!!!!!



Using the division button instead of the fraction key gives a conflicting (but what I believe to be the correct) answer; that is:



a divided by b divided by c divided by d = ((a divided by b) divided by c) divided by d



I feel sure that the older Casio scientifics (pre 1991) gave the correct result following the rules as I have explained above. But I cannot get hold of one to check my theory.



So my question is: What is the correct order of operation with multiple consecutive divisions? That is, what is the order of division for:



a/b/c/d



as written without any parenthesis? Are the new Casio calculators giving the wrong answer or have I been living a lie?



PS: I am aware that the calculators give what I believe is the correct answer if the right cursor key is pressed after the keying in of each denominator. Bu that is a fudge. By using the right cursor, you are applying implicit parenthesis.



As inputted, either the calculators are giving the wrong answers or I have been living a lie. Can someone please confirm the order of division should indeed be from left to right!



PS: I have searched everywhere I could on the internet and in many maths text books but have not been able to find anything that addresses the ambiguity in the order of multiple consecutive division operations.





This question already has an answer here:



  • What is 48÷2(9+3)? [duplicate]

    4 answers









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Jul 28 at 19:50
























asked Jul 28 at 19:37









IqbalHamid

113




113




marked as duplicate by Ross Millikan, Jyrki Lahtonen, amWhy, Leucippus, Adrian Keister Jul 29 at 0:47


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by Ross Millikan, Jyrki Lahtonen, amWhy, Leucippus, Adrian Keister Jul 29 at 0:47


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.













  • It is $$fracabcd$$
    – Dr. Sonnhard Graubner
    Jul 28 at 19:40






  • 3




    Possible duplicate of What is 48÷2(9+3)? also math.stackexchange.com/questions/2074849/…
    – Ross Millikan
    Jul 28 at 20:07







  • 3




    (Not an answer). No self respecting mathematician would write that expression without including the parentheses s/he wanted to enforce the order. Whatever the usual convention, it would be folly to expect everyone to know it. I suspect the same is true for computer programmers. Rely on explicit specification rather than on what the compiler/interpreter chooses.
    – Ethan Bolker
    Jul 28 at 20:27
















  • It is $$fracabcd$$
    – Dr. Sonnhard Graubner
    Jul 28 at 19:40






  • 3




    Possible duplicate of What is 48÷2(9+3)? also math.stackexchange.com/questions/2074849/…
    – Ross Millikan
    Jul 28 at 20:07







  • 3




    (Not an answer). No self respecting mathematician would write that expression without including the parentheses s/he wanted to enforce the order. Whatever the usual convention, it would be folly to expect everyone to know it. I suspect the same is true for computer programmers. Rely on explicit specification rather than on what the compiler/interpreter chooses.
    – Ethan Bolker
    Jul 28 at 20:27















It is $$fracabcd$$
– Dr. Sonnhard Graubner
Jul 28 at 19:40




It is $$fracabcd$$
– Dr. Sonnhard Graubner
Jul 28 at 19:40




3




3




Possible duplicate of What is 48÷2(9+3)? also math.stackexchange.com/questions/2074849/…
– Ross Millikan
Jul 28 at 20:07





Possible duplicate of What is 48÷2(9+3)? also math.stackexchange.com/questions/2074849/…
– Ross Millikan
Jul 28 at 20:07





3




3




(Not an answer). No self respecting mathematician would write that expression without including the parentheses s/he wanted to enforce the order. Whatever the usual convention, it would be folly to expect everyone to know it. I suspect the same is true for computer programmers. Rely on explicit specification rather than on what the compiler/interpreter chooses.
– Ethan Bolker
Jul 28 at 20:27




(Not an answer). No self respecting mathematician would write that expression without including the parentheses s/he wanted to enforce the order. Whatever the usual convention, it would be folly to expect everyone to know it. I suspect the same is true for computer programmers. Rely on explicit specification rather than on what the compiler/interpreter chooses.
– Ethan Bolker
Jul 28 at 20:27










3 Answers
3






active

oldest

votes

















up vote
3
down vote













While addition and subtraction is conventionally evaluated left-to-right, multiplication and division isn't. If we have a sequence of multiplications and divisions without parentheses, and there is a division which is not the rightmost operation, then the expression is inherently ambiguous.



Thus: $5cdot 4div 3$ is unambiguous. $5div 4cdot 3$ is ambiguous. There may be convention on this, but it is not universal, which means that any time you see such an expression you cannot be certain that the author followed the convention, which makes it ambiguous. Turn it around, and I recommend that any time you write such an expression you use fractions and brackets to clarify.



PS: see this youtube video by minutephysics for something more or less reflecting my view on this focus on rules for order of operations.






share|cite|improve this answer



















  • 1




    @YvesDaoust You have never seen anyone write $R=C/2pi$ when relating a circle's radius to its circumference? Because I have. And many other expressions to the same effect.
    – Arthur
    Jul 28 at 20:08







  • 2




    @YvesDaoust: Programming languages "need" to adopt some convention (or rather, it is easier to adopt and document a precedence rule than to make your parser reject ambiguous cases), and we should be grateful that they mostly adopt the same one, but that doesn't mean that relying on it in text meant for human readers is wise or should be recommended.
    – Henning Makholm
    Jul 28 at 20:09







  • 2




    @YvesDaoust, I consider "don't confuse your readers" to be a quintessentially pragmatic consideration.
    – Henning Makholm
    Jul 28 at 20:14






  • 1




    @YvesDaoust What you have done in your previous answers is only tangentially related to this discussion, and not a real answer to Henning's comment. If you write an expression like $2div 3cdot 5$, I (and probably many with me) will be confused. (It doesn't matter whether you personally have ever actually done it on this site.) That's a very pragmatic concern, as Henning points out, and that is something you care about, as I read your comment.
    – Arthur
    Jul 28 at 20:19







  • 1




    @YvesDaoust For another pragmatic angle, if you say that in certain contexts $c/2pi$ can mean $c/(2pi)$, then I think it's a really bad idea to teach that to students when they are learning algebra. They have enough trouble without also having to take into account that the rules can change depending on what else they've written further up the page. So again I prefer to just say it's ambiguous, and then clarify. And if we've taught students that it's ambiguous, then it is ambiguous, again because you can't ever be certain who your readers are.
    – Arthur
    Jul 28 at 20:27


















up vote
1
down vote













The easisest way to intrepret $``/x"$ is to turn it into $``cdot dfrac 1x"$. In which case $a/b/c/d = a cdot dfrac 1b cdot dfrac 1c cdot dfrac 1d = dfracabcd$. This agrees with Wolfram Alpha's answer after identifying $b$ and $d$ as variables. In the same manner, $c/2pi = c cdot dfrac 12 cdot pi= dfraccpi2$. This too can be verifies using Wolfram Alpha.



The main reason for order of operation rules is to remove any ambiguity in notation. Very often, the human brain sees what it wants to see, not what it is supposed to see. Since computers came along, the rules for order of operation evolved into the rules for a computer compiler to use to parse a line of code. If there is any disagreement with what an expression means, then, rules or no rules, if you want to be understood clearly, write the expression so that it can be understood clearly.



In his book, Surely You're Joking Mr. Feynman, Richard Feynman describes how me developed new symbols for trigonometric and logarithmic functions.



I thought my symbols were just as good, if not better, than the regular 
symbols ­­it doesn't make any difference what symbols you use (sic) ­­ but I
discovered later that it does make a difference. Once when I was explaining
something to another kid in high school, without thinking I started to make
these symbols, and he said, "What the hell are those?" I realized then that
if I'm going to talk to anybody else, I'll have to use the standard symbols,
so I eventually gave up my own symbols





share|cite|improve this answer






























    up vote
    0
    down vote













    Operators of equal priority are evaluated left-to-right. For commutative operators, it makes no difference, but for the non-commutative ones, it does.



    $$a+b-c+d=((a+b)-c)+d$$



    $$atimes bdiv ctimes d=((atimes b)div c)times d$$




    The left-to-right ordering was naturally adopted on calculators in the early days (with all operators at the same priority) because it allows immediate execution and no "pending operation".



    E.g.



    $$3+5times2-1div 5=8times2-1div 5=16-1div 5=15div 5=3$$



    vs.



    $$3+5cdot2-frac15=frac645.$$



    Even with priorities, the left-to-right rule remains.




    In mathematical notation, $a/b/c/d$ is not used. Instead, you would write something like



    $$fracdfrac abdfrac cd$$ or $$dfrac adfrac bdfrac cd$$ or $$dfracdfracdfrac abcd$$ where the order is subtly indicated by the bar lengths (and vertical alignment).






    share|cite|improve this answer























    • The convention that you do it left-to-right matters for non-associative operations, not non-commutative. Of course, for the four operations here, there is significant overlap between the two properties.
      – Arthur
      Jul 28 at 19:48


















    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote













    While addition and subtraction is conventionally evaluated left-to-right, multiplication and division isn't. If we have a sequence of multiplications and divisions without parentheses, and there is a division which is not the rightmost operation, then the expression is inherently ambiguous.



    Thus: $5cdot 4div 3$ is unambiguous. $5div 4cdot 3$ is ambiguous. There may be convention on this, but it is not universal, which means that any time you see such an expression you cannot be certain that the author followed the convention, which makes it ambiguous. Turn it around, and I recommend that any time you write such an expression you use fractions and brackets to clarify.



    PS: see this youtube video by minutephysics for something more or less reflecting my view on this focus on rules for order of operations.






    share|cite|improve this answer



















    • 1




      @YvesDaoust You have never seen anyone write $R=C/2pi$ when relating a circle's radius to its circumference? Because I have. And many other expressions to the same effect.
      – Arthur
      Jul 28 at 20:08







    • 2




      @YvesDaoust: Programming languages "need" to adopt some convention (or rather, it is easier to adopt and document a precedence rule than to make your parser reject ambiguous cases), and we should be grateful that they mostly adopt the same one, but that doesn't mean that relying on it in text meant for human readers is wise or should be recommended.
      – Henning Makholm
      Jul 28 at 20:09







    • 2




      @YvesDaoust, I consider "don't confuse your readers" to be a quintessentially pragmatic consideration.
      – Henning Makholm
      Jul 28 at 20:14






    • 1




      @YvesDaoust What you have done in your previous answers is only tangentially related to this discussion, and not a real answer to Henning's comment. If you write an expression like $2div 3cdot 5$, I (and probably many with me) will be confused. (It doesn't matter whether you personally have ever actually done it on this site.) That's a very pragmatic concern, as Henning points out, and that is something you care about, as I read your comment.
      – Arthur
      Jul 28 at 20:19







    • 1




      @YvesDaoust For another pragmatic angle, if you say that in certain contexts $c/2pi$ can mean $c/(2pi)$, then I think it's a really bad idea to teach that to students when they are learning algebra. They have enough trouble without also having to take into account that the rules can change depending on what else they've written further up the page. So again I prefer to just say it's ambiguous, and then clarify. And if we've taught students that it's ambiguous, then it is ambiguous, again because you can't ever be certain who your readers are.
      – Arthur
      Jul 28 at 20:27















    up vote
    3
    down vote













    While addition and subtraction is conventionally evaluated left-to-right, multiplication and division isn't. If we have a sequence of multiplications and divisions without parentheses, and there is a division which is not the rightmost operation, then the expression is inherently ambiguous.



    Thus: $5cdot 4div 3$ is unambiguous. $5div 4cdot 3$ is ambiguous. There may be convention on this, but it is not universal, which means that any time you see such an expression you cannot be certain that the author followed the convention, which makes it ambiguous. Turn it around, and I recommend that any time you write such an expression you use fractions and brackets to clarify.



    PS: see this youtube video by minutephysics for something more or less reflecting my view on this focus on rules for order of operations.






    share|cite|improve this answer



















    • 1




      @YvesDaoust You have never seen anyone write $R=C/2pi$ when relating a circle's radius to its circumference? Because I have. And many other expressions to the same effect.
      – Arthur
      Jul 28 at 20:08







    • 2




      @YvesDaoust: Programming languages "need" to adopt some convention (or rather, it is easier to adopt and document a precedence rule than to make your parser reject ambiguous cases), and we should be grateful that they mostly adopt the same one, but that doesn't mean that relying on it in text meant for human readers is wise or should be recommended.
      – Henning Makholm
      Jul 28 at 20:09







    • 2




      @YvesDaoust, I consider "don't confuse your readers" to be a quintessentially pragmatic consideration.
      – Henning Makholm
      Jul 28 at 20:14






    • 1




      @YvesDaoust What you have done in your previous answers is only tangentially related to this discussion, and not a real answer to Henning's comment. If you write an expression like $2div 3cdot 5$, I (and probably many with me) will be confused. (It doesn't matter whether you personally have ever actually done it on this site.) That's a very pragmatic concern, as Henning points out, and that is something you care about, as I read your comment.
      – Arthur
      Jul 28 at 20:19







    • 1




      @YvesDaoust For another pragmatic angle, if you say that in certain contexts $c/2pi$ can mean $c/(2pi)$, then I think it's a really bad idea to teach that to students when they are learning algebra. They have enough trouble without also having to take into account that the rules can change depending on what else they've written further up the page. So again I prefer to just say it's ambiguous, and then clarify. And if we've taught students that it's ambiguous, then it is ambiguous, again because you can't ever be certain who your readers are.
      – Arthur
      Jul 28 at 20:27













    up vote
    3
    down vote










    up vote
    3
    down vote









    While addition and subtraction is conventionally evaluated left-to-right, multiplication and division isn't. If we have a sequence of multiplications and divisions without parentheses, and there is a division which is not the rightmost operation, then the expression is inherently ambiguous.



    Thus: $5cdot 4div 3$ is unambiguous. $5div 4cdot 3$ is ambiguous. There may be convention on this, but it is not universal, which means that any time you see such an expression you cannot be certain that the author followed the convention, which makes it ambiguous. Turn it around, and I recommend that any time you write such an expression you use fractions and brackets to clarify.



    PS: see this youtube video by minutephysics for something more or less reflecting my view on this focus on rules for order of operations.






    share|cite|improve this answer















    While addition and subtraction is conventionally evaluated left-to-right, multiplication and division isn't. If we have a sequence of multiplications and divisions without parentheses, and there is a division which is not the rightmost operation, then the expression is inherently ambiguous.



    Thus: $5cdot 4div 3$ is unambiguous. $5div 4cdot 3$ is ambiguous. There may be convention on this, but it is not universal, which means that any time you see such an expression you cannot be certain that the author followed the convention, which makes it ambiguous. Turn it around, and I recommend that any time you write such an expression you use fractions and brackets to clarify.



    PS: see this youtube video by minutephysics for something more or less reflecting my view on this focus on rules for order of operations.







    share|cite|improve this answer















    share|cite|improve this answer



    share|cite|improve this answer








    edited Jul 28 at 23:19


























    answered Jul 28 at 19:59









    Arthur

    98.4k793174




    98.4k793174







    • 1




      @YvesDaoust You have never seen anyone write $R=C/2pi$ when relating a circle's radius to its circumference? Because I have. And many other expressions to the same effect.
      – Arthur
      Jul 28 at 20:08







    • 2




      @YvesDaoust: Programming languages "need" to adopt some convention (or rather, it is easier to adopt and document a precedence rule than to make your parser reject ambiguous cases), and we should be grateful that they mostly adopt the same one, but that doesn't mean that relying on it in text meant for human readers is wise or should be recommended.
      – Henning Makholm
      Jul 28 at 20:09







    • 2




      @YvesDaoust, I consider "don't confuse your readers" to be a quintessentially pragmatic consideration.
      – Henning Makholm
      Jul 28 at 20:14






    • 1




      @YvesDaoust What you have done in your previous answers is only tangentially related to this discussion, and not a real answer to Henning's comment. If you write an expression like $2div 3cdot 5$, I (and probably many with me) will be confused. (It doesn't matter whether you personally have ever actually done it on this site.) That's a very pragmatic concern, as Henning points out, and that is something you care about, as I read your comment.
      – Arthur
      Jul 28 at 20:19







    • 1




      @YvesDaoust For another pragmatic angle, if you say that in certain contexts $c/2pi$ can mean $c/(2pi)$, then I think it's a really bad idea to teach that to students when they are learning algebra. They have enough trouble without also having to take into account that the rules can change depending on what else they've written further up the page. So again I prefer to just say it's ambiguous, and then clarify. And if we've taught students that it's ambiguous, then it is ambiguous, again because you can't ever be certain who your readers are.
      – Arthur
      Jul 28 at 20:27













    • 1




      @YvesDaoust You have never seen anyone write $R=C/2pi$ when relating a circle's radius to its circumference? Because I have. And many other expressions to the same effect.
      – Arthur
      Jul 28 at 20:08







    • 2




      @YvesDaoust: Programming languages "need" to adopt some convention (or rather, it is easier to adopt and document a precedence rule than to make your parser reject ambiguous cases), and we should be grateful that they mostly adopt the same one, but that doesn't mean that relying on it in text meant for human readers is wise or should be recommended.
      – Henning Makholm
      Jul 28 at 20:09







    • 2




      @YvesDaoust, I consider "don't confuse your readers" to be a quintessentially pragmatic consideration.
      – Henning Makholm
      Jul 28 at 20:14






    • 1




      @YvesDaoust What you have done in your previous answers is only tangentially related to this discussion, and not a real answer to Henning's comment. If you write an expression like $2div 3cdot 5$, I (and probably many with me) will be confused. (It doesn't matter whether you personally have ever actually done it on this site.) That's a very pragmatic concern, as Henning points out, and that is something you care about, as I read your comment.
      – Arthur
      Jul 28 at 20:19







    • 1




      @YvesDaoust For another pragmatic angle, if you say that in certain contexts $c/2pi$ can mean $c/(2pi)$, then I think it's a really bad idea to teach that to students when they are learning algebra. They have enough trouble without also having to take into account that the rules can change depending on what else they've written further up the page. So again I prefer to just say it's ambiguous, and then clarify. And if we've taught students that it's ambiguous, then it is ambiguous, again because you can't ever be certain who your readers are.
      – Arthur
      Jul 28 at 20:27








    1




    1




    @YvesDaoust You have never seen anyone write $R=C/2pi$ when relating a circle's radius to its circumference? Because I have. And many other expressions to the same effect.
    – Arthur
    Jul 28 at 20:08





    @YvesDaoust You have never seen anyone write $R=C/2pi$ when relating a circle's radius to its circumference? Because I have. And many other expressions to the same effect.
    – Arthur
    Jul 28 at 20:08





    2




    2




    @YvesDaoust: Programming languages "need" to adopt some convention (or rather, it is easier to adopt and document a precedence rule than to make your parser reject ambiguous cases), and we should be grateful that they mostly adopt the same one, but that doesn't mean that relying on it in text meant for human readers is wise or should be recommended.
    – Henning Makholm
    Jul 28 at 20:09





    @YvesDaoust: Programming languages "need" to adopt some convention (or rather, it is easier to adopt and document a precedence rule than to make your parser reject ambiguous cases), and we should be grateful that they mostly adopt the same one, but that doesn't mean that relying on it in text meant for human readers is wise or should be recommended.
    – Henning Makholm
    Jul 28 at 20:09





    2




    2




    @YvesDaoust, I consider "don't confuse your readers" to be a quintessentially pragmatic consideration.
    – Henning Makholm
    Jul 28 at 20:14




    @YvesDaoust, I consider "don't confuse your readers" to be a quintessentially pragmatic consideration.
    – Henning Makholm
    Jul 28 at 20:14




    1




    1




    @YvesDaoust What you have done in your previous answers is only tangentially related to this discussion, and not a real answer to Henning's comment. If you write an expression like $2div 3cdot 5$, I (and probably many with me) will be confused. (It doesn't matter whether you personally have ever actually done it on this site.) That's a very pragmatic concern, as Henning points out, and that is something you care about, as I read your comment.
    – Arthur
    Jul 28 at 20:19





    @YvesDaoust What you have done in your previous answers is only tangentially related to this discussion, and not a real answer to Henning's comment. If you write an expression like $2div 3cdot 5$, I (and probably many with me) will be confused. (It doesn't matter whether you personally have ever actually done it on this site.) That's a very pragmatic concern, as Henning points out, and that is something you care about, as I read your comment.
    – Arthur
    Jul 28 at 20:19





    1




    1




    @YvesDaoust For another pragmatic angle, if you say that in certain contexts $c/2pi$ can mean $c/(2pi)$, then I think it's a really bad idea to teach that to students when they are learning algebra. They have enough trouble without also having to take into account that the rules can change depending on what else they've written further up the page. So again I prefer to just say it's ambiguous, and then clarify. And if we've taught students that it's ambiguous, then it is ambiguous, again because you can't ever be certain who your readers are.
    – Arthur
    Jul 28 at 20:27





    @YvesDaoust For another pragmatic angle, if you say that in certain contexts $c/2pi$ can mean $c/(2pi)$, then I think it's a really bad idea to teach that to students when they are learning algebra. They have enough trouble without also having to take into account that the rules can change depending on what else they've written further up the page. So again I prefer to just say it's ambiguous, and then clarify. And if we've taught students that it's ambiguous, then it is ambiguous, again because you can't ever be certain who your readers are.
    – Arthur
    Jul 28 at 20:27











    up vote
    1
    down vote













    The easisest way to intrepret $``/x"$ is to turn it into $``cdot dfrac 1x"$. In which case $a/b/c/d = a cdot dfrac 1b cdot dfrac 1c cdot dfrac 1d = dfracabcd$. This agrees with Wolfram Alpha's answer after identifying $b$ and $d$ as variables. In the same manner, $c/2pi = c cdot dfrac 12 cdot pi= dfraccpi2$. This too can be verifies using Wolfram Alpha.



    The main reason for order of operation rules is to remove any ambiguity in notation. Very often, the human brain sees what it wants to see, not what it is supposed to see. Since computers came along, the rules for order of operation evolved into the rules for a computer compiler to use to parse a line of code. If there is any disagreement with what an expression means, then, rules or no rules, if you want to be understood clearly, write the expression so that it can be understood clearly.



    In his book, Surely You're Joking Mr. Feynman, Richard Feynman describes how me developed new symbols for trigonometric and logarithmic functions.



    I thought my symbols were just as good, if not better, than the regular 
    symbols ­­it doesn't make any difference what symbols you use (sic) ­­ but I
    discovered later that it does make a difference. Once when I was explaining
    something to another kid in high school, without thinking I started to make
    these symbols, and he said, "What the hell are those?" I realized then that
    if I'm going to talk to anybody else, I'll have to use the standard symbols,
    so I eventually gave up my own symbols





    share|cite|improve this answer



























      up vote
      1
      down vote













      The easisest way to intrepret $``/x"$ is to turn it into $``cdot dfrac 1x"$. In which case $a/b/c/d = a cdot dfrac 1b cdot dfrac 1c cdot dfrac 1d = dfracabcd$. This agrees with Wolfram Alpha's answer after identifying $b$ and $d$ as variables. In the same manner, $c/2pi = c cdot dfrac 12 cdot pi= dfraccpi2$. This too can be verifies using Wolfram Alpha.



      The main reason for order of operation rules is to remove any ambiguity in notation. Very often, the human brain sees what it wants to see, not what it is supposed to see. Since computers came along, the rules for order of operation evolved into the rules for a computer compiler to use to parse a line of code. If there is any disagreement with what an expression means, then, rules or no rules, if you want to be understood clearly, write the expression so that it can be understood clearly.



      In his book, Surely You're Joking Mr. Feynman, Richard Feynman describes how me developed new symbols for trigonometric and logarithmic functions.



      I thought my symbols were just as good, if not better, than the regular 
      symbols ­­it doesn't make any difference what symbols you use (sic) ­­ but I
      discovered later that it does make a difference. Once when I was explaining
      something to another kid in high school, without thinking I started to make
      these symbols, and he said, "What the hell are those?" I realized then that
      if I'm going to talk to anybody else, I'll have to use the standard symbols,
      so I eventually gave up my own symbols





      share|cite|improve this answer

























        up vote
        1
        down vote










        up vote
        1
        down vote









        The easisest way to intrepret $``/x"$ is to turn it into $``cdot dfrac 1x"$. In which case $a/b/c/d = a cdot dfrac 1b cdot dfrac 1c cdot dfrac 1d = dfracabcd$. This agrees with Wolfram Alpha's answer after identifying $b$ and $d$ as variables. In the same manner, $c/2pi = c cdot dfrac 12 cdot pi= dfraccpi2$. This too can be verifies using Wolfram Alpha.



        The main reason for order of operation rules is to remove any ambiguity in notation. Very often, the human brain sees what it wants to see, not what it is supposed to see. Since computers came along, the rules for order of operation evolved into the rules for a computer compiler to use to parse a line of code. If there is any disagreement with what an expression means, then, rules or no rules, if you want to be understood clearly, write the expression so that it can be understood clearly.



        In his book, Surely You're Joking Mr. Feynman, Richard Feynman describes how me developed new symbols for trigonometric and logarithmic functions.



        I thought my symbols were just as good, if not better, than the regular 
        symbols ­­it doesn't make any difference what symbols you use (sic) ­­ but I
        discovered later that it does make a difference. Once when I was explaining
        something to another kid in high school, without thinking I started to make
        these symbols, and he said, "What the hell are those?" I realized then that
        if I'm going to talk to anybody else, I'll have to use the standard symbols,
        so I eventually gave up my own symbols





        share|cite|improve this answer















        The easisest way to intrepret $``/x"$ is to turn it into $``cdot dfrac 1x"$. In which case $a/b/c/d = a cdot dfrac 1b cdot dfrac 1c cdot dfrac 1d = dfracabcd$. This agrees with Wolfram Alpha's answer after identifying $b$ and $d$ as variables. In the same manner, $c/2pi = c cdot dfrac 12 cdot pi= dfraccpi2$. This too can be verifies using Wolfram Alpha.



        The main reason for order of operation rules is to remove any ambiguity in notation. Very often, the human brain sees what it wants to see, not what it is supposed to see. Since computers came along, the rules for order of operation evolved into the rules for a computer compiler to use to parse a line of code. If there is any disagreement with what an expression means, then, rules or no rules, if you want to be understood clearly, write the expression so that it can be understood clearly.



        In his book, Surely You're Joking Mr. Feynman, Richard Feynman describes how me developed new symbols for trigonometric and logarithmic functions.



        I thought my symbols were just as good, if not better, than the regular 
        symbols ­­it doesn't make any difference what symbols you use (sic) ­­ but I
        discovered later that it does make a difference. Once when I was explaining
        something to another kid in high school, without thinking I started to make
        these symbols, and he said, "What the hell are those?" I realized then that
        if I'm going to talk to anybody else, I'll have to use the standard symbols,
        so I eventually gave up my own symbols






        share|cite|improve this answer















        share|cite|improve this answer



        share|cite|improve this answer








        edited Jul 28 at 23:31


























        answered Jul 28 at 21:51









        steven gregory

        16.4k22055




        16.4k22055




















            up vote
            0
            down vote













            Operators of equal priority are evaluated left-to-right. For commutative operators, it makes no difference, but for the non-commutative ones, it does.



            $$a+b-c+d=((a+b)-c)+d$$



            $$atimes bdiv ctimes d=((atimes b)div c)times d$$




            The left-to-right ordering was naturally adopted on calculators in the early days (with all operators at the same priority) because it allows immediate execution and no "pending operation".



            E.g.



            $$3+5times2-1div 5=8times2-1div 5=16-1div 5=15div 5=3$$



            vs.



            $$3+5cdot2-frac15=frac645.$$



            Even with priorities, the left-to-right rule remains.




            In mathematical notation, $a/b/c/d$ is not used. Instead, you would write something like



            $$fracdfrac abdfrac cd$$ or $$dfrac adfrac bdfrac cd$$ or $$dfracdfracdfrac abcd$$ where the order is subtly indicated by the bar lengths (and vertical alignment).






            share|cite|improve this answer























            • The convention that you do it left-to-right matters for non-associative operations, not non-commutative. Of course, for the four operations here, there is significant overlap between the two properties.
              – Arthur
              Jul 28 at 19:48















            up vote
            0
            down vote













            Operators of equal priority are evaluated left-to-right. For commutative operators, it makes no difference, but for the non-commutative ones, it does.



            $$a+b-c+d=((a+b)-c)+d$$



            $$atimes bdiv ctimes d=((atimes b)div c)times d$$




            The left-to-right ordering was naturally adopted on calculators in the early days (with all operators at the same priority) because it allows immediate execution and no "pending operation".



            E.g.



            $$3+5times2-1div 5=8times2-1div 5=16-1div 5=15div 5=3$$



            vs.



            $$3+5cdot2-frac15=frac645.$$



            Even with priorities, the left-to-right rule remains.




            In mathematical notation, $a/b/c/d$ is not used. Instead, you would write something like



            $$fracdfrac abdfrac cd$$ or $$dfrac adfrac bdfrac cd$$ or $$dfracdfracdfrac abcd$$ where the order is subtly indicated by the bar lengths (and vertical alignment).






            share|cite|improve this answer























            • The convention that you do it left-to-right matters for non-associative operations, not non-commutative. Of course, for the four operations here, there is significant overlap between the two properties.
              – Arthur
              Jul 28 at 19:48













            up vote
            0
            down vote










            up vote
            0
            down vote









            Operators of equal priority are evaluated left-to-right. For commutative operators, it makes no difference, but for the non-commutative ones, it does.



            $$a+b-c+d=((a+b)-c)+d$$



            $$atimes bdiv ctimes d=((atimes b)div c)times d$$




            The left-to-right ordering was naturally adopted on calculators in the early days (with all operators at the same priority) because it allows immediate execution and no "pending operation".



            E.g.



            $$3+5times2-1div 5=8times2-1div 5=16-1div 5=15div 5=3$$



            vs.



            $$3+5cdot2-frac15=frac645.$$



            Even with priorities, the left-to-right rule remains.




            In mathematical notation, $a/b/c/d$ is not used. Instead, you would write something like



            $$fracdfrac abdfrac cd$$ or $$dfrac adfrac bdfrac cd$$ or $$dfracdfracdfrac abcd$$ where the order is subtly indicated by the bar lengths (and vertical alignment).






            share|cite|improve this answer















            Operators of equal priority are evaluated left-to-right. For commutative operators, it makes no difference, but for the non-commutative ones, it does.



            $$a+b-c+d=((a+b)-c)+d$$



            $$atimes bdiv ctimes d=((atimes b)div c)times d$$




            The left-to-right ordering was naturally adopted on calculators in the early days (with all operators at the same priority) because it allows immediate execution and no "pending operation".



            E.g.



            $$3+5times2-1div 5=8times2-1div 5=16-1div 5=15div 5=3$$



            vs.



            $$3+5cdot2-frac15=frac645.$$



            Even with priorities, the left-to-right rule remains.




            In mathematical notation, $a/b/c/d$ is not used. Instead, you would write something like



            $$fracdfrac abdfrac cd$$ or $$dfrac adfrac bdfrac cd$$ or $$dfracdfracdfrac abcd$$ where the order is subtly indicated by the bar lengths (and vertical alignment).







            share|cite|improve this answer















            share|cite|improve this answer



            share|cite|improve this answer








            edited Jul 28 at 20:02


























            answered Jul 28 at 19:46









            Yves Daoust

            110k665203




            110k665203











            • The convention that you do it left-to-right matters for non-associative operations, not non-commutative. Of course, for the four operations here, there is significant overlap between the two properties.
              – Arthur
              Jul 28 at 19:48

















            • The convention that you do it left-to-right matters for non-associative operations, not non-commutative. Of course, for the four operations here, there is significant overlap between the two properties.
              – Arthur
              Jul 28 at 19:48
















            The convention that you do it left-to-right matters for non-associative operations, not non-commutative. Of course, for the four operations here, there is significant overlap between the two properties.
            – Arthur
            Jul 28 at 19:48





            The convention that you do it left-to-right matters for non-associative operations, not non-commutative. Of course, for the four operations here, there is significant overlap between the two properties.
            – Arthur
            Jul 28 at 19:48



            Comments

            Popular posts from this blog

            What is the equation of a 3D cone with generalised tilt?

            Color the edges and diagonals of a regular polygon

            Relationship between determinant of matrix and determinant of adjoint?