Talk:Order of operations

Is a parenthesis a mathematical operation
There is a current version of this article that insists that a parenthesis is a mathematical operation and that PEDMAS is a law of mathematics. A parenthesis is a symbol of grouping and PEDMAS is a mnemonic. No reference is given suggesting otherwise. The person who wants this in the article has restored this claim after my revert with the comment "Take it to the talk page." I would appreciate the opinion of others. Rick Norwood (talk) 19:21, 10 April 2023 (UTC)


 * Every reference cited by this article treats parenthesis (or brackets or something similar) as part of the "order of operations". Omitting this would mis-represent the source material.
 * Perhaps you have a source you would like to share that treats order of operations without discussing parenthesis. Mr. Swordfish (talk) 17:06, 12 April 2023 (UTC)


 * As I mentioned in my revert, you are correct, parentheses are not technically operations, but since they affect that order in which the operations are performed, it becomes necessary to mention them. Furthermore, it is also necessary to know what the priority level of the parentheses is compared to every other operations. So in order to have a standard way to interpret a mathematical formula, a priority level must be given to each operation and to each type of parentheses (or brackets, if one one form of grouping isn't enough). Perhaps, under the definition, instead of just saying "1. parenthesis", it should say something like: "Any operation or series of operations located in the inner most set of parentheses". Then it becomes less confusing since we are talking about executing operations inside the parentheses, and not the parentheses themselves. Dhrm77 (talk) 17:52, 12 April 2023 (UTC)
 * I suggest . This resolves another issue of the current version, namely that it is not said that the order of operations applies also inside parentheses. D.Lazard (talk) 18:32, 12 April 2023 (UTC)


 * Of course the article has to mention parentheses, and does. My point is that parentheses are a symbol of grouping, not an operation, and that PEDMAS is a mnemonic, not a rule of mathematics. Rick Norwood (talk) 09:52, 13 April 2023 (UTC)
 * Agree that the definition subsection is not the proper place to introduce the PEMDAS mnemonic.  The following three  items do not have a parenthetical explanation and I don't think it's necessary to have one for the first item.  Do we really need to explain what parentheses are? And if we do, the current version does a poor job of it.
 * I would support removing the parenthetical explanation from the first item and adding a brief bit of text to the next paragraph explaining that expressions inside of parentheses are evaluated first.
 * First and recursively. Meaning that if inside parentheses there are another set of parenthesis, that must be interpreted first. Dhrm77 (talk) 15:22, 14 April 2023 (UTC)
 * Also, the term parentheses is a US-specific term; we should also use the term more commonly used in the rest of the English-speaking world.
 * I'll suggest the following start to the definition subsection:
 * The order of operations, which is used throughout mathematics, science, technology and many computer programming languages, is:
 * Parentheses or brackets
 * Exponentiation and root extraction
 * Multiplication and Division
 * Addition and Subtraction
 * This means that to evaluate an expression, one first evaluates any expression inside the parentheses, working outwards if there is more than one set. Otherwise, the operator that is higher in the above list should be applied first.
 * I think this language also avoids implying that parentheses are an "operator". Mr. Swordfish (talk) 14:53, 13 April 2023 (UTC)
 * Seeing no objections, I'll make this change. It seems to (at least partially) address issues raised in this thread. Mr. Swordfish (talk) 21:52, 20 April 2023 (UTC)
 * Well, this has been reverted, with the comment
 * rv Mr. Swordfish's ongoing insistence that parentheses are an operation, a statement that no professional mathematician I know of believes.
 * Neither the current version of this article nor the version that was just reverted claims that "parentheses are an operation" so I fail to understand the objection. The proposed revision attempted to address three issues discussed above:
 * 1) PEMDAS is a mnemonic, not a "rule" so it's premature to introduce it in the definition section
 * 2) Operator order is applied both inside and outside the parentheses
 * 3) Parentheses are applied recursively inside to outside if more than one set.
 * I prefer to resolve this via reaching consensus here on the talk page rather than edit warring. Comments? Mr. Swordfish (talk) 13:14, 21 April 2023 (UTC)
 * Bemdas or pemdas ... is the correct term ... subtraction is the lowest order of operation ... then addition ... then division then multiplication ... sometimes addition is a higher order of operation than division ... such as in fractions ... 2/3+3/4 ...
 * one finds the common denominator by multiplying .. then adding then dividing ... making division lower than multiplication at all times ... and Pemdas is technically wrong as each set of brackets has a different name and they are linked under the term brackets ... not parenthesis ..parenthesis are ... { } are NOT parenthesis ... forgotten their proper name ... but for order of operations all brackets (that is everything in that subset) gets done first ... then exponents  ... then multiplication ... and so on ... this once was taught in grade 1 ... back in the 60's ... these days your lucky if it is taught at all ... youre told bemdas and then do it ... so pemdas is technically invalid ... thus why Bemdas is always true ... even the wiki pages have pedmas listed erroneously ... that is NEVER a valid order ... the order of operation doesnt rely on how a calculator does it ... it is a basic math property that what grows goes first what shrinks goes next ... exceptions also relegate higher order operations below lower order operations in exception such as the fraction example I used .. this math rule if you like is as old as Pythagoras ... but back then they didnt have exponents ... and converted multiplication to addition and division to subtraction ... making addition higher than subtraction still ... and thus the order is always bemdas so this order of operations dates back to roughly 537 BC .. to Pythagoras and Thale ...  That is the long answer ... you want more involved proof read Thale and Pythagoras ... you only have a few thousand texts to read to get the full explanation ... takes about 3 weeks .. makes a great report for english class btw too
 * dont forget Parenthesis are ONLY ... brackets are, { }, [ ] ... the order of brackets is curly first square second and round third ... each have their own meaning and use in the various disciplines of math ... and curly ones are the highest order of them from integration ... square ones are for limits such as from 0 to 4 ... and round ones are just do this stuff before you move on ... square brackets also denote an array ... which is a set of limits defined by rows and columns ...
 * the mnemonic Bemdas ... is the only accurate one to use ... in all maths even physics and chemistry
 * as for source grade 1 math 1969 and 1970 ... and further back Thale ... and Pythagoras ... it dates back even further but it is hazy on whom derived it originally ... Pythagoras is the true father of geometry but Euclid got the title ... just like tesla created radio BUT marconi patented it ... then lost it to Tesla 2607:FEA8:BD22:8900:F522:3964:C719:6913 (talk) 00:43, 17 February 2024 (UTC)
 * this once was taught in grade 1 ... back in the 60's – this was never taught in the first grade. More like 5th–7th grade. It definitely does not date to Thales or Euclid; modern mathematical notation largely arose in the 17th–19th century, and was initially not very settled. The teaching of formal 'order of operations' rules comes from the 19th century.
 * According to sources I can find, there were actually a few decades in the ~60s–80s where it was taught substantially less than previously, because it was seen as unnecessary/unhelpful. My impression is that it came back into style with the rise of calculators and computer programming languages, which are inherently much pickier than humans.
 * parenthesis are ... { } are NOT parenthesis – in this context the word "parentheses" covers all kinds of grouping punctuation. Often these are ordered from inside out as: round "parentheses", square brackets [], curly braces {}, and later sometimes angle brackets etc. However, in technical literature it is also common to just use nested parentheses, reserving other kinds of brackets for other purposes such as real intervals, set-builder notation, bra-ket notation, matrices, the Iverson bracket, and so on. –jacobolus (t) 01:48, 17 February 2024 (UTC)

I still think parentheses are a separate topic, which are not clearly explained by an instruction to "do them" first. You don't "do" parentheses. But there is another comment above that I'm curious about: "the term more commonly used in the rest of the English-speaking world". What term is that?

In the US, we talk about (parentheses), [brackets], and {braces} all of which are sometimes used as symbols of grouping and all of which have other uses. Parentheses are used both for points (a,b) and for open intervals (a,b) and there is no way to tell which use is intended except from context. Brackets are use for closed intervals [a,b]. Braces are use for sets {a,b} and an open brace is used for a system of simultaneous equations. (Parenthetic aside, off topic: My students are no longer taught much vocabulary in the US K-12 system, so I now have to say, instead of "brackets", "square brackets" and instead of "braces", "curly braces", for my students to know what I'm talking about.

Wikipedia should have an article titled "Symbols of grouping". I'll think about creating one. Rick Norwood (talk) 10:41, 14 April 2023 (UTC)


 * See https://editorsmanual.com/articles/brackets-british-vs-american/ or parentheses for the answer to your question. Mr. Swordfish (talk) 14:05, 14 April 2023 (UTC)

"Parenthetic subexpressions"
Why do we use this phrase in the Definition section?

I've looked at every single source cited in the article, and except for the non-US sources that use "Brackets" and the Wolfram cite that uses "Parenthesization" every single cite simply uses the word "Parentheses". And the Wolfram cite links their word to their article on "Parentheses.

So, what's up with us making up our own nomenclature? If there's reliable source using the phrase "Parenthetic subexpressions" we need to cite it. Otherwise, it seems fairly clear to just repeat the language that all the cited sources use. Other opinions? Mr. Swordfish (talk) 00:04, 18 August 2023 (UTC)


 * My fault . I wanted to emphasize that parantheses are not operators. What about "Expressions in parentheses or brackets"? - Jochen Burghardt (talk) 08:21, 18 August 2023 (UTC)
 * The overwhelming majority of cites say something like this:
 * Parentheses,
 * Exponents,
 * Multiplication and Division, and
 * Addition and Subtraction
 * What's the issue with simply repeating the verbiage in the cited sources? (There aren't any copyright issues in play.) Mr. Swordfish (talk) 12:54, 18 August 2023 (UTC)
 * ✅, since you insisted.
 * My point was that exponentiation, multiplication, division, addition, and subtraction are operators, so they are evaluated on their arguments, by applying their respective algorithm. In contrast, parantheses are not operators, so there is no algorithm associated with parantheses that could be used to evaluate them on their "arguments"; what is evaluated is the subexpression inside them. - Jochen Burghardt (talk) 13:12, 18 August 2023 (UTC)


 * By and large, cites that confuse parentheses with operators are not written by mathematicians, but are written by authors of grade school textbooks. Grade school textbooks in every area of human knowledge are filled with misinformation. It seems there is, on this page, a majority who insist this article contain misinformation. To point out just one example, the article states: "This means that to evaluate an expression, one first evaluates any sub-expression inside parentheses, working inside to outside if there is more than one set." Please follow this instruction and work inside to outside to evaluate the following expression: 2(x+y). Rick Norwood (talk) 12:49, 19 August 2023 (UTC)
 * Do any of our cited sources "confuse parentheses with operators"? I'm not seeing any. Most don't even use the term operator and the ones that do are careful to distinguish between parenthesis (or brackets) and the operators.  Perhaps you could cite an example of what you are claiming?
 * Similarly, this article does not confuse parentheses with operators. In common language, applying parentheses is an operation in the sense that it is a process, procedure, system, method, or many of other synonyms for the word operation.  While there is a mathematical definition of  operation, that is not how the word is being used here. Mr. Swordfish (talk) 17:19, 19 August 2023 (UTC)
 * Usually, only ground expressions can be evaluated. Expressions containing variables can at best be rewritten into some canonical normal form. Mentioning this would, however, be inadequate for a school-level article. - Jochen Burghardt (talk) 18:02, 19 August 2023 (UTC)


 * Mr. Swordfish asks "Do any of our cited sources "confuse parentheses with operators"?" But earlier he says "Otherwise, it seems fairly clear to just repeat the language that all the cited sources use." So, if the article, when it confuses parentheses and operators, is repeating cited sources, then the cited sources have the same confusion. And if the cited sources do not have the same confusion, then the article should not confuse operators and symbols of grouping.


 * Jochen Burghardt agrees that the word "evaluated" does not apply to all uses of the order of operations. But claims that to mention this would be "inadequate for a school-level article." The idea that false statements are better than true statements is fairly generally believed by authors of grade-school textbooks in all subjects. If accurate writing is "inadequate", I gather that implies that false statements are "adequate".


 * Apparently this article will continue to include the highly misleading first two sentences under "Definition". But the advantage of saying things in Wikipedia that students will have to unlearn if they go to college escapes me. Rick Norwood (talk) 10:51, 20 August 2023 (UTC)
 * Ok. So you don't have any examples of sources we cite that "confuse parentheses with operators".
 * Thanks for clarifying. Mr. Swordfish (talk) 12:22, 20 August 2023 (UTC)


 * This is why I have so much trouble when I try to be logical. Mr. Swordfish says "So you don't have any examples of sources we cite that "confuse parentheses with operators"." Where does he get that? Certainly not from anything I said. Rick Norwood (talk) 12:56, 20 August 2023 (UTC)
 * If you have examples to support your assertions, present them. Otherwise, it's just your opinion, or original research. It's that simple. Mr. Swordfish (talk) 21:02, 20 August 2023 (UTC)

Help from a mathematician?
At one point, I spent a substantial amount of time rewriting this article to make it mathematically accurate. Other editors immediately reverted my rewrite and reinserted incorrect information, apparently on the grounds that it was what they were taught in grade school.

I would really like not to have to continue teaching my college classes that the things they were taught in grade school are wrong, and I think good Wikipedia articles would be a step in the right direction, since most of my students use Wikipedia. But the fans of parentheses as operations rather than symbols of grouping will, as can be seen above, argue illogically and interminably.

Will anyone who actually knows something about logic and mathematics help? Or should I give up and move on to another article? Rick Norwood (talk) 10:54, 21 August 2023 (UTC)


 * I obtained a doctoral degree in mathematics long ago and was concerned with formal languages and first-order predicate logic as an essential part of my professional work, so you may well consider me a mathematician. I agree that parantheses aren't operators, and some of my contributions to this article consist in defusing claims implying the contrary. The change of "Parenthetical subexpressions" to "Parantheses", which was the trigger of our above discussion, can hardly re-introduce the confusion of considering parantheses as operation, imo. - So I wonder, whether you have any particular sentences in mind that should be changed? - Jochen Burghardt (talk) 17:58, 21 August 2023 (UTC)
 * I also have an advanced degree in Mathematics, but only the at MSc level. I taught calculus and pre-calculus at the college level for a half-dozen years and operator precedence was part of the curriculum, but it was a very small part and I don't recall spending more than a few minutes on it. It was a long time ago, and until recently I had never heard of PEMDAS and it's variants.
 * One immediate edit that I might suggest is to replace
 * Whether inside parenthesis or not, the operator that is higher in the above list should be applied first.
 * with
 * Whether inside parenthesis or not, the operation that is higher in the above list should be applied first.
 * I don't know that this will resolve things to everyone's satisfaction, but perhaps it would be a step in the right direction. Mr. Swordfish (talk) 18:23, 21 August 2023 (UTC)

That would probably be an improvement, but the correct statement is this: if there is an operator both to the left and to the right of a given expression, the operator higher on the list should be applied first. If both operators are on the same level, the associative law applies, and applying either first gives the same results. The main point that it is perfectly all right to add two numbers somewhere in an expression before you perform a multiplication somewhere else entirely.

I'm going to make a change, and we'll see what happens next. Rick Norwood (talk) 10:30, 22 August 2023 (UTC)


 * The changes made before my recent change seem to have greatly improved the first section of the article. I've tried to improve the Definition section. Further changes are welcome. Rick Norwood (talk) 10:50, 22 August 2023 (UTC)
 * This is an elementary article, and it must remain elementary. This is the reason of my revert of your recent edit, which introduced the concept of precedence. Also, the first sentence of section was subject of a consensus here in april 2023, and you provide no reason to change it. Nevertheless, I made two changes at the end of this first paragraph:
 * The order ... is used ... : who says that or "the order of the pages of a book is used to read it". I have replaced "used" with "results from a convention adopted".
 * I have replaced "expressed" with "summarized". This makes clear that the list that follows is a mnemonic, and that, for understanding the meaning of each item, one must read the paragraphs that follow the list.
 * More generally, the question that seems behind this recurrent discussion seems: Is a grouping operator (parentheses) an operation? Clearly, this does not belong to this article, as this depends on mathematical definitions of the two terms. So, the article must be written in a way that avoids this difficult and (in my opinion) unimportant question. D.Lazard (talk) 14:19, 22 August 2023 (UTC)
 * I agree that this is an elementary article, i.e. the likely audience is the general population, not mathematicians.
 * I also agree that whether applying a grouping symbol (parentheses) is an operation depends on whether you're using this definition or the plain language meaning of the word operation. Since this article is an elementary article, using plain language terminology is appropriate.  And agree that it is an unimportant question.
 * Finally, I agree that we reached consensus about the first sentence in the Definition section several months ago. Mr. Swordfish (talk) 21:43, 22 August 2023 (UTC)

Ah, well. It takes a long time to do a carefully rewrite, and only seconds to revert it. Apparently, even though we all agree that parentheses are not an operation, there are enough people who want this article to say that that it keeps going back in. This time I am going to do just one thing, remove the claim that parentheses are an operation. We'll see what happens next. Rick Norwood (talk) 19:07, 22 August 2023 (UTC)

My previous edit stood for more than an hour, so I'm going to start moving the material in this article that says nothing about the order of operations to the article titled symbols of grouping.Rick Norwood (talk) 21:16, 22 August 2023 (UTC)

I've added references. If reverted again, I'll add another reference and restore what makes sense.

Mr. Swordfish argues that, since this is an elementary article we do not need to limit "operation" to the mathematical meaning. We can use the dictionary meaning. But the title of the article uses "operations" in the mathematical meaning, not the dictionary meaning, and so the article should do the same.

Mr. Swordfish and several others share a consensus that there is a difference between a mathematical operation and a symbol of grouping. Why, then, does he keep adding Parentheses to the list of mathematical operations? What does he think that adds to the article? Rick Norwood (talk) 21:55, 22 August 2023 (UTC)


 * This is extremely simple.
 * Every source we cite includes parentheses (or brackets) as the first priority.
 * Our job as editors is to re-state what the cited sources say. Mr. Swordfish (talk) 22:19, 22 August 2023 (UTC)

On the contrary. No reliable mathematical source says parentheses are operations. You are the only person who says this.

It is true that essentially all US grade school textbooks list parentheses in their order of operations. They also have many other mistakes, such as forcing students to add from left to right. The people in power, who decide the grade school curriculum, want things the way they have always been. But Wikipedia uses professional terminology, not grade school terminology. Why do you want Wikipedia to repeat grade school mistakes? Rick Norwood (talk) 23:05, 22 August 2023 (UTC)


 * There would be a controversial assertion if the article would list parentheses as an operation. This is definitively not the case, as the numbered list in section is not a list of operations, but a mnemonic for remembering the order in which operations must be performed. This is clearly stated. Please stop your edit war against several consensuses, and do not try to justify it by considerations that do not reflect the content of the article.  D.Lazard (talk) 10:41, 23 August 2023 (UTC)
 * How is forcing anyone to add from left to right a mistake? True, if a string of operation only contains additions, then adding from left to right or right to left makes no difference. But as a general rule, if a series of operation contains a mix of additions and subtractions, then doing it from right to left will likely give you the wrong answer. So forcing the "left to right" rule will guarantee the right answer in the general case. Dhrm77 (talk) 10:49, 23 August 2023 (UTC)

I've added another reference. The Common Core does not include PEDMAS. Teachers teach PEDMAS because they teach what they were taught and books include PEDMAS because teachers like it. But it is not in the Common Core and the fact that it is wrong has been pointed out many times.

I'm surprised to find D. Lazard on the other side of this question, since he is an editor I respect. I can only suggest he Google "is pedmas correct" or "is pedmas still in common core".

As for the article not saying Parentheses are operations, read the section carefully. Here is what it says:

"The order of operations, that is, the order in which the operations in a formula must be performed, results from a convention adopted throughout mathematics, science, technology and many computer programming languages. It is summarized as:[1][5][6]

Parentheses Exponentiation Multiplication and Division Addition and Subtraction"

Clearly, the implication is that the summarized list is a list of operations.

But the main point is that the Common Core has abandoned PEDMAS, that many sources say clearly that PEDMAS is wrong, and there is no good reason to perpetuate this error. Rick Norwood (talk) 12:30, 23 August 2023 (UTC)


 * It is your own opinion that this list must be interpreted as a list of operations. This is explicitly contradicted by the next sentence: Also, an initialism, such as PEDMAS cannot be wrong by itself; the problem with it is that it can be misleading if interpreted as a list of operations (what it is not). In any case, as PEDMAS is not mentioned in the current version before section, you cannnot use your opinion on PEDMAS to force modifications of sections that do not mention PEDMAS at all. D.Lazard (talk) 13:01, 23 August 2023 (UTC)

Clearly, you have made up your mind. I wish you would at least took at the references, and the other changes you reverted, which moved discussions of symbols of grouping. As things stand, unless someone else supports the view I support, which is the view of the Common Core document, then this article will continue to mislead readers.

Yes, a consensus is important. But in Wikipedia, authoritative references are even more important. And I am pretty sure that no mathematical publication, as distinct from a grade school publication, has the list with parentheses at the top. Rick Norwood (talk) 13:20, 23 August 2023 (UTC)


 * I'd prefer to start the section with "The order of evaluation, that is, ..." (change suggestion underlined). I believe to remember that recently I made such an edit, but apparently it got reverted somehow. - d Jochen Burghardt (talk) 18:20, 23 August 2023 (UTC)
 * If we're going to call the section "Definition" then we need to start with a definition of the words that compose the title of the article, e.g. "The order of operations is [expository text goes here]."
 * My take is that the first sentence of the article serves quite adequately as the definition:
 * In mathematics and computer programming, the order of operations (or operator precedence) is a collection of rules that reflect conventions about which procedures to perform first in order to evaluate a given mathematical expression.
 * making the Definition section redundant, and that the "Definition" section is really more of an overview or synopsis than a definition. If we rename it, then I'm fine with your suggested terminology. More generally, if replacing operator and operation with synonyms like process, procedure, or evaluation helps resolve the recent disagreements then perhaps it's the right approach.  That said, we're writing the article for our readers, not ourselves, and perhaps throwing in too many synonyms will be confusing to newcomers. Mr. Swordfish (talk) 21:12, 23 August 2023 (UTC)
 * "-In mathematics and computer programming, the order of operations (or operator precedence) is a collection of rules that reflect conventions about which procedures to perform first in order to evaluate a given mathematical expression."
 * There is missing what needs to be done, if operations are on the same level (Multiplication and Divsion e.g). The people here avoid to give a statment in the rules, instead of write the definition of rules, the mix definition and implementation of rules...this makes the article not very easy to understand. Goldnas (talk) 22:37, 18 February 2024 (UTC)

BODMAS, BIDMAS, and geographical distribution
We have solid sourcing that PEMDAS is used in the US and France, and also that BEDMAS is used in Canada and the UK.

We don't have sourcing for the geographical distribution of BODMAS or BIDMAS, so I propose simply writing around the gap instead of making specific claims that are not supported by cites.

Also, the "O" in BODMAS is sometimes said to stand for "Order" (an archaic word for exponentiation), "Of", in addition to the Operations that we state in the text. Seems like we should include those alternatives.

Per the above, I suggest the following text for the third bullet point:


 * Other English-speaking countries may use BODMAS meaning Brackets, Operations, Division/Multiplication, Addition/Subtraction. Sometimes the O is expanded as "Of" or "Order" (i.e. powers/exponents or roots).  BIDMAS is also used, standing for Brackets, Indices, Division/Multiplication, Addition/Subtraction.

New references are bare urls for now - we can format them in a better manner if this change is accepted. Mr. Swordfish (talk) 14:31, 23 August 2023 (UTC)


 * UPDATE:
 * Some sources for geographical distribution:
 * https://files.eric.ed.gov/fulltext/EJ1148460.pdf
 * The PEMDAS is an acronym or mnemonic for the order of operations that stands for Parenthesis, Exponents, Multiplication, Division, Addition and Subtraction. This acronym is widely used in the United States of America. Meanwhile, in other countries such as United Kingdom and Canada, the acronyms used are BODMAS (Brackets, Order, Division, Multiplication, Addition and Subtraction) and BIDMAS (Brackets, Indices, Division, Multiplication, Addition and Subtraction).
 * https://link.springer.com/article/10.1007/s10649-017-9789-9
 * We further learned that PEMDAS is often used in Francophone Canada.
 * I don't know that it is this article's purpose to present an exhaustive list of which acronym is used in each geographic area that was once part of the UK, so maybe we should just de-emphasize the geography part. Mr. Swordfish (talk) 16:50, 23 August 2023 (UTC)

I'll only point out (again) that the Common Core standards do not use PEMDAS. I suppose it needs to be here, since most US grade schools ignore the Common Core standards, even when their state requires them. I agree with Mr. Swordfish about shortening this section. Rick Norwood (talk) 10:24, 24 August 2023 (UTC)


 * A brief summary of how order of operations is treated by the common core standards would probably be an improvement to this article. Looking at the Common_Core section, I'm at a loss as to how one would briefly summarize the coverage of the topic at hand.
 * The cites are all broken links, so I can't examine the source material. I'd be happy to look at any references to see what they say. Mr. Swordfish (talk) 22:31, 24 August 2023 (UTC)

Precedence
The article uses the term "precedence" without defining it. There are almost 20 incoming redirects that have "precedence" in their title, and many others that use the pipe precedence. In particular, it is almost impossible for a beginner to know which of addition and multiplication has the higest precedence.

So, a definition of precedence must be given in the lead, and this must be expanded in a specific section. Someone is willing to do that? D.Lazard (talk) 16:42, 23 August 2023 (UTC)


 * My reading is that the meaning is clear from context:
 * In mathematics and computer programming, the order of operations (or operator precedence) is a collection of rules that reflect conventions about which procedures to perform first in order to evaluate a given mathematical expression.
 * For example, in mathematics and most computer languages, multiplication is granted a higher precedence than addition...
 * That is, procedures with a higher precedence are performed before those with lower precedence.
 * Maybe we could change the second sentence to say
 * For example, in mathematics and most computer languages, multiplication is granted a higher precedence than addition (procedures with a higher precedence are performed before those with lower precedence) ...
 * But I'm not convinced it's an improvement. Perhaps implement it as an explanatory note?
 * For example, in mathematics and most computer languages, multiplication is granted a higher precedence than addition... Mr. Swordfish (talk) 19:00, 23 August 2023 (UTC)

Again, I agree with Mr. Swordfish. There is a Simple English Wikipedia for people who do not know the meaning of common words such as "precedence". Rick Norwood (talk) 10:28, 24 August 2023 (UTC)


 * In this article, precedence is not a common word, but a mathematical term. See, among many examples Operator precedence in C. D.Lazard (talk) 11:01, 24 August 2023 (UTC)

This is getting really strange. Mr. Swordfish says that in this article it is ok to use the dictionary meaning of operation, which has a special mathematical meaning. D. Lazard says it is not ok to use the common word precedence, which means "which comes first", and is not used here to mean anything else but "which comes first". Rick Norwood (talk) 10:06, 25 August 2023 (UTC)


 * If it would be the common meaning that is used here, there were not almost 20 incoming redirects with "precedence" in their title (including Precedence (mathematics), and many other incoming links that are piped to "precedence". This article is also for people who follow these links. So, this is an issue that must be fixed, and I'll boldly try to fix it. D.Lazard (talk) 10:35, 25 August 2023 (UTC)
 * I don't think the most recent edit quite gets it right with regard to computer languages. It says:
 * The rank of an operator is called its precedence, and an operation with a higher (operator) precedence must be performed before operations with lower precedence. Operations with the same precedence are generally performed from left to right, although some programming languages adopt a different convention.
 * Most (perhaps almost all) computer languages follow the conventional order, but not all do. And some languages like APL and Smalltalk simply apply a strict left-to-right or right-to-left precedence. It's not just operators with the same precedence that are evaluated in a different order that the norm, all operators are applied in the order they are written regardless of precedence.
 * The second sentence is half right in that operators that do not obey the associative rule (e.g. division and exponentiation) are applied left-to-right by some languages and right-to-left by others.
 * I'll suggest:
 * The rank of an operator is called its precedence, and an operation with a higher (operator) precedence is normally performed before operations with lower precedence. Operations with the same precedence are generally performed from left to right. Some programming languages  and calculators adopt a different convention.
 * By splitting the second sentence, it implies that the third sentence applies to both preceding statements. Mr. Swordfish (talk) 13:38, 25 August 2023 (UTC)
 * I agree. D.Lazard (talk) 14:09, 25 August 2023 (UTC)

"Damning with faint praise"
The opening sentence of the Programming languages section states:


 * Some programming languages use precedence levels that conform to the order commonly used in mathematics...

and while this is correct, it could be misleading. My experience is that nearly every programming language uses the "standard" operator precedence (with the usual caveats above) so stating it as "Some" implies that it is not the norm, or even a majority.

Looking at this list of most popular programming languages the only exceptions that jump out as exceptions are Lisp and Haskell, which are pretty far down on the list, and html which doesn't really do math at all. Perhaps there are others since I'm not familiar with all of them, but all the more common ones use the standard operator precedence (to the extent that there is one - i.e. grouping symbols, exponents, multiplication/division, and addition/subtraction in that order; beyond that all bets are off)

I don't think it would be original research to look at that list and say "Most commonly used programming languages..." instead of "Some programming languages..." but some may argue that point. Other suggestions for how to word this to avoid possible mis-representation? Or a good cite for this change? Mr. Swordfish (talk) 13:50, 30 August 2023 (UTC)


 * A side remark: Lisp is not an exception: it uses a purely functional notation and does not need any precedence rule. A specificity of lisp is the placement of parentheses in functional notation: it use the notation (f x) instead of f(x). D.Lazard (talk) 14:07, 30 August 2023 (UTC)
 * I've never used Lisp (never had the patience to count that many parentheses), but my understanding is that it doesn't use infix notation at all. So, maybe it's an exception in the same sense that html is.  Or not.  It's certainly different. Mr. Swordfish (talk) 15:06, 30 August 2023 (UTC)
 * Henderson's Encyclopedia of Computer Science and Technology gives the standard precedence list and says it is used by "most languages". I believe Haskell does have precedence as well, though it is a bit confused by the way you can use the same operator in both infix and prefix versions. D.Lazard is correct, prefix notation in Lisp gets by without any such rules. Smalltalk is the only true counterexample I can think of. MrOllie (talk) 14:13, 30 August 2023 (UTC)
 * Thanks for the pointer to Henderson's Encyclopedia of Computer Science and Technology. I'll work up a cite and change "Some" to "Most".
 * BTW, The second programming language that I learned (after Fortran) was APL, which uses strict right-to-left evaluation. I'm not aware of any others, but there probably are although undoubtedly obscure. Mr. Swordfish (talk) 15:19, 30 August 2023 (UTC)

Infix notation
The second sentence of this article is:


 * These rules are meaningful only when infix notation is used. When functional or Polish notation are used for all operations, the order of operations results from the notation itself.

This is certainly correct, but might be too much this early in the article. My sense is that most of our readers are not familiar with the concepts of functional or polish notation, and those systems are not what this article is about. Granted, there are links for the reader to click, but my reading (assuming the perspective of a non-mathematician) is that this sentence is a distraction from the main thrust of the article.

I'd suggest simply moving this sentence to later in the article, perhaps just a paragraph or two. Alternatively, provide a parenthetical example so the reader doesn't have to click on the link to find out that infix notation is just the familiar way of writing mathematical expressions that they have come to know and love:


 * These rules are meaningful only when infix notation (e.g. 3 x 4 + 5) is used. When functional or Polish notation are used for all operations, the order of operations results from the notation itself.

Other opinions? Mr. Swordfish (talk) 15:28, 2 September 2023 (UTC)


 * ✅. I'd suggest to move the sentence to the very end of the lead, and to change "when infix notation is used" to "when the usual notation (called infix notation) is used". Adding an example for infix isn't useful, except when it is contrasted with (e.g.) Polish notation; so we could possible add a sentence like "For example, the infix expressions 3 × 4 + 5 and 3 × (4 + 5) are written as + × 3 4 5 and × 3 + 4 5 in Polish notation, respectively.". I'm afraid, however, that such a sentence won't be understood without additional (and then distracting) explanations. Maybe, reverse Polish notation is easier to explain; in fact is has been employed by HP calculators, so it may be known better. - Jochen Burghardt (talk) 15:54, 2 September 2023 (UTC)
 * Agree that if we move the sentence to the end of the intro section there is no need for an example. Also agree that providing examples of other notations here would just cause confusion for most of our audience.  The curious can click the links to read about the alternative notations. Mr. Swordfish (talk) 18:39, 2 September 2023 (UTC)
 * I do not object to the new position of the paragraph on alternative notations. However:
 * "These rules are" may be unclear after the paragraph on memes. This may be clarified either by replacing "These rules are" by "The order of operations is" or by moving the paragraph before the paragraph on memes. Maybe, the best choice is to do both changes.
 * The reason for which I placed this paragrph near the beginning, was to emphasize that there is no mathematical concept here, but only notational convention. It may be useful to clarify this near the beginning of the lead.
 * I am not sure enough of the best choice for doing these changes myself. So, ... D.Lazard (talk) 21:02, 2 September 2023 (UTC)
 * Swapping the last two paragraphs does seem to clarify things, so I've gone ahead and implemented that change. That edit seems sufficient, but I can't say I'd object to the other. Mr. Swordfish (talk) 23:05, 2 September 2023 (UTC)

left to right
I am not surprised that my removing the false information "operations with the same precedence are generally performed left to right" was reverted. So many people have been taught that false "rule" in grade school that many people insist that what they learned in grade school is true. But all mathematicians know that addition is commutative and associative and multiplication is commutative and associative, and mathematicians generally perform operations in whatever order is most convenient.

It is a bit ironic that I think 12/6*2 = 4, which is what you get when you perform operations left to right. But most physicists insist that 12/6*2 = 1. Of course, my reasoning has nothing to do with left to right. It makes sense to me that subtraction is addition of the opposite and division is multiplication by the reciprocal. It is strange that after all these centuries, there is nobody who can settle the question. Rick Norwood (talk) 10:02, 5 September 2023 (UTC)


 * You might see from my edit summary that my reason for the revert was that your new text was flawed, too (as was/is the previous text). If you come up with a better suggestion how to fix the false information, I won't object.
 * As for your 2nd paragraph above, there is no question to be settled - it is very common in mathematics that different authors introduce different ("local") conventions and use them afterwards. - Jochen Burghardt (talk) 17:14, 5 September 2023 (UTC)
 * Agreed. Mathematics is a human language and like any other human language there are variations and no universal "correct" standard.  This article presents a set of conventions that are not universally applicable as there is not a set of rules that are universally applicable.
 * Also agree that the current wording is flawed. Where there is a specification to be followed (e.g. computer languages, spreadsheet and other number crunching software) almost everything evaluates addition/subtraction left-to-right (with subtraction interpreted as adding the inverse)* while other non-transitive operations such as division and exponentiation are sometimes left-to-right and sometimes right-to-left.  Hence all those ambiguous memes that have everybody arguing on facebook.
 * In short, there is no convention for evaluating expressions like 12/6*2. And we shouldn't imply that there is.
 * Perhaps we should say something like addition and subtraction is usually performed left-to-right but there is no general agreement for division or exponentiation. We'd need a good source to back it up, and it may be a distraction this early in the article.  Or we could just remove the sentence.  Not really sure what is the best approach.
 * And when done this way, there's no need for a rule since you get the same result due to associativity.
 * Mr. Swordfish (talk) 18:31, 5 September 2023 (UTC)
 * Do you have a source for "But most physicists insist that 12/6*2 = 1."? 62.46.182.236 (talk) 23:00, 24 February 2024 (UTC)

Standards from the style sheets of academic journals in Mathematics, Physic and Engineering
Since the style sheets of academic journals in mathematics, physics and engineering all agree since about 1920, I'm not sure why this is still so controversial.
 * I haven't seen any variance in the rules used by journals in the relevant fields, I think it is fairly clear

Groupings (parenthesis, brackets, fraction bars) Unary Subtraction Exponents Juxtaposition (also called implied multiplication) Multiplication and Division Addition and Subtraction - when calculations are of equal precedence they are resolved from left to right - and the clarification that multiple exponents are read from the top down — Preceding unsigned comment added by 2601:180:8300:8C50:DC15:E3C6:CE13:601F (talk) 21:50, 13 September 2023 (UTC)


 * I would like to see the source for this. I do know that some physics journals prioritize juxtaposition but have never seen a math journal that did. There is no such operation as "unary subtraction". Subtraction is a binary operation. The unary minus is "negation". Rick Norwood (talk) 09:59, 14 September 2023 (UTC)
 * I would also like to see the source for this quote. My take is that if there really was an agreed upon standard we wouldn't see the variation among computer programming languages - the people who write the language specs are certainly capable of reading and applying a standard. Mr. Swordfish (talk) 17:19, 14 September 2023 (UTC)
 * Programming languages have different constraints than mathematical publication. In particular, the basic operators (+, -, *, /) do not obey the associative law: integer calculations can overflow depending on association, and floating-point calculations can give different results. So unlike in mathematics, how operations associate is important. Different languages also have different philosophies about reordering operations: some specify the order precisely, others allow the implementation to reorder. Again, this is not relevant to mathematics. Finally, mathematicians simply avoid writing anything ambiguous, whereas programming languages must accept any input they're given.
 * So I don't think you can draw conclusions about mathematical notation by looking at what programming languages do. --Macrakis (talk) 21:17, 15 September 2023 (UTC)
 * Hi, sorry, that 'quote' was me. I didn't intend it as a quote but as a generalization of many sources I've read. I guess I'm a noob in the Wikipedia editing system. First off, I did mean "unary minus" not "unary subtraction"; and also that line is wrong because -3^2 is -(3^2) not (-3)^2. So yes, that line is wrong or out of order.  Second, I think exponents should be considered a type of grouping like fraction bars are. Third multiplication by Juxtaposition does seem to come before multiplication and division every where I check. Because 6/2n always means 6/(2n) not 3/n. 2601:180:8300:8C50:A1C5:F1DD:560E:BA72 (talk) 17:12, 18 September 2023 (UTC)
 * An interesting example is Physical Review Style and Notation Guide which says Multiplication *always* precedes division but also prohibits all multiplication signs except for a very special case involving line wraps inside an equation. So in this guide multiplication comes before division but all multiplication is by juxtaposition. 2601:180:8300:8C50:A1C5:F1DD:560E:BA72 (talk) 17:38, 18 September 2023 (UTC)
 * In physics they have their own rules. In mathematics, different rules. The only way to deal with this situation rationally is to use parentheses, e.g. 6/(2n) or (6/2)n. Rick Norwood (talk) 10:00, 19 September 2023 (UTC)
 * An expression such as $$x/2y$$ unambiguously means $$x/(2y),$$ and readers have no trouble interpreting this in ordinary circumstances, irrespective of whether they are in physics, mathematics, or any other field. If the other meaning were intended, it should instead be written $$\tfrac12 xy$$ or $$\tfrac x2 y$$ or $$(x/2)y,$$ etc. –jacobolus (t) 03:18, 12 January 2024 (UTC)
 * I'd never call "$$x/2y$$" unambiguous. If I meant "$$x/(2y)$$", I'd prefer to write "$$\tfrac{x}{2y}$$" to make that clear. If you have to write a program implementing some computation from some physics paper, and you come across "$$x/2y$$", you better complain the ambiguity to its author than translate it to the most similar . - Jochen Burghardt (talk) 17:03, 14 January 2024 (UTC)
 * It was perfectly unambiguous until people started disagreeing on the interpretation, just like what happened to the words "trapezium" and "billion" (which, incidentally, all stem from the United States. What's up with that?). $$x/2y$$ means $$x/(2y)$$, and if you wanted/intended $$0.5 * x * y$$ then explicitly write out the multiplication symbol, $$x/2*y$$. 203.218.11.233 (talk) 08:20, 5 February 2024 (UTC)
 * Is the trapezoid controversy you are talking about whether to consider a parallelogram a kind of trapezoid, or the controversy about whether "trapezoid" means the same as "trapezium" or whether it should mean a quadrilateral with no parallel sides?
 * The ancient Greek "exclusive" definition where a trapezia can't have more than one pair of parallel sides is a bad one IMO, comparable to the bad choice of definition that 1 (one), as a "unit", was not really a "number". –jacobolus (t) 17:12, 5 February 2024 (UTC)
 * I can not find the specific sentence "Multiplication *always* precedes division". Can someone help out? 62.46.182.236 (talk) 23:04, 24 February 2024 (UTC)

Mixing of the rule, the implementation of the rules within different areas (calculator, programming languages)
The sentence "Calculators generally perform operations with the same precedence from left to right,[1] but some programming languages and calculators adopt different conventions. " does not fit where it is placed. The order of operation should apply on mathematical rules in general and not what calculators do in general. This is very confusing because by reading this, I only care on the rules and not what calculators do. Also, in this sentence you mix calculators (what the do most), rules within programming languages which does only explain, an implementation of the rules above. What I can not read, if the rules from left to right by the order of operation is a general rule. So this article for me explains nothing.

It would be much better to have a own section for *calculator* and what the do most, then an extra section for IT and maybe which language rules per default implements different. — Preceding unsigned comment added by Goldnas (talk • contribs) 11:24, 27 January 2024 (UTC)


 * The rulset itself, the implementation of the rulsets (as described in the article) are different things. Isn't it? Goldnas (talk) 11:26, 27 January 2024 (UTC)
 * I do not understand your concerns. Indeed, this article is about rules for interpreting formulas in view of doing the implied computation. The considered formulas consist of sequences of numbers (or variables representing them) and arithmetic operators that can be read by a human as well by a computer or a calculator. These rules are conventions, which means that human and computers can use different rules, and, depending of the context, different rules may be used. This is what is said in the article. The implementation of such rules is a very different thing it consist to write a program that follows the rules for interpreting formula. This is usually called an interpreter or a compiler, and it is not the subject of the article. D.Lazard (talk) 12:35, 27 January 2024 (UTC)
 * I want to see general
 * DEFINITION RULE which needs to be done if we have DIFFERENT precedence
 * DEFINITION RULE which needs to be executed if operation on SAME precedence
 * What I do not want to see here, if some calculators or same programming langauge IMPLEMENTATION OF Rule in calculators, in programming language. There is a own section for calculators and for programming language. But the general rule is not written down. The DEFINITION of equal precedence is mixed with IMPLEMENTATION in calculators and programming langauge.
 * It does not matter if humans or calculators read rules somehow. It is about the definition of rules.
 * Therefor the current article is not well written it is unclear and if you would refere to this article it would raise more questions like give answers. E.g.
 * If you refere to this article, some people might say: Yes, but there is not clear definition. Read the sentence:
 * "Calculators generally perform operations with the same precedence from left to right"
 * It does not say "Calculators always perform operations with the same precedence from left to right" which means to me, that there is no clear rule because not all calculators do the right thing. So this means I am right If I calculator 60/5*(2+1) I can do the result of 4.
 * You cannot prove that I am wrong and this article also prove nothing. There no sentence of the rule of evaluate operations on equal precedence, there is only a example of how some calculators and programming languages while it should be the sentence:
 * On higher ranked operations, evaluate from high to low, on equal rankted operations, evaluate from left to right. That would be a rule which I could implement in any programming language even on those who are not invented yet. Any developer would reject your definition and would ask the same question: How should the computer work if the operations ranked equally? And you would respond: from left to right. So lets write the article clean. The implemtation of rules is in the section available anyhow. Why write same things twice? Makes no sense at all. Goldnas (talk) 20:38, 3 February 2024 (UTC)
 * The convention for precedence varies from one context to another. The conventions in grade-school mnemonic mantras, pure-math papers, electronic calculators, and various programming languages all differ in various ways. –jacobolus (t) 21:17, 3 February 2024 (UTC)
 * No, this is not a convention thing. There are rules to execute. I could not implement the ruleset because there is no fully ruleset. And this is an easy one.
 * 60/5*(2+1) evalutes
 * 60/5*3 and then you have (as you can see) 2 opertion on the same level. It should be 100% clear what to do with operations on same level. This rule which is important is not described in the article. And not, this rules do not change, no matter if it is grade-school or pure-math papers. Whatever. The rule for what needs to be done on same level is missing here. Goldnas (talk) 21:37, 3 February 2024 (UTC)
 * The "rules" (i.e. conventions) are not universal, but vary depending on the context. –jacobolus (t) 21:42, 3 February 2024 (UTC)
 * Why do you double the statements. The statements about calculator and programming languages are in the other sections as well. Should't we remove it at all? Goldnas (talk) 22:26, 3 February 2024 (UTC)
 * What is the result of 60/5*3? Goldnas (talk) 22:30, 3 February 2024 (UTC)
 * I would typically interpret $$60/5\cdot 3$$ to mean $$60/15 = 4$$ in a technical document, and even more so if it were written in terms of variables like $$a / bc.$$ In a computer program,  instead typically means.
 * The interpretation depends on the context, and an expression like $$60/5\cdot 3$$ is somewhat ambiguous and often would be better to replace with a more explicit expression such as $$\tfrac{60}5 \cdot 3,$$ $$\tfrac{60}{5\cdot 3},$$ $$60/(5\cdot 3),$$ or $$(60/5)\cdot 3,$$ depending on intention. –jacobolus (t) 22:56, 3 February 2024 (UTC)
 * But in this case, the section makes also no sense. In this case we would need to remove the sentence. Why? Because in section Calculators and Programming Languages the precedence is described. Goldnas (talk) 19:15, 4 February 2024 (UTC)
 * The fun part is, that in footnote 11 the write exact the same as I write. So we give a source how it should be done based on the same rule I wrote multiple times in the article but you revert it. Did you read the sources of this article and studied, if there is no contradiction?
 * Quote:
 * "BODMAS is an acronyn that serves as a reminder of the order in which operations have to be
 * carried out when working with equations and formulas:
 * Brackets pOwers Division Multiplication Addition Subtraction
 * where division and multiplication have the same priority, and so do addition and subtraction. If
 * you have several operations of the same priority then you work from left to right."
 * Sure that we want fo write different in the article compared to its sources? Goldnas (talk) 22:45, 3 February 2024 (UTC)
 * The sections are already their, my bad. But I still believe it does not fit. It is a repeation of the section below. The rule is missing. Goldnas (talk) 12:11, 27 January 2024 (UTC)

Programming languages
Logical OR and logical AND are non-associative and therefore should have equal precedence. Darcourse (talk) 13:32, 31 January 2024 (UTC)


 * Logical AND typically binds tighter than logical OR, because people like to write expressions like A && B || C && D and have that mean (A && B) || (C && D). It's possible there's some programming language where this doesn't hold, but it would be mildly practically inconvenient. –jacobolus (t) 15:34, 31 January 2024 (UTC)

Misrepresentation of Source
"In academic literature, multiplication denoted by juxtaposition (also known as implied multiplication) is interpreted as having higher precedence than division, so that 1 ÷ 2n equals 1 ÷ (2n), not (1 ÷ 2)n. For example, the manuscript submission instructions for the Physical Review journals state that multiplication is of higher precedence than division,[28]"

I looked at the source, and yes, it says that multiplication is of higher precedence than division. However, it does NOT say that this is only true in cases where there is implied multiplication. The phrase "for example" implies that this source should support the previous sentence, which is does not.

The other (unlinked) sources in the paragraph again support multiplication having higher precedence than division, though whether implied multiplication is relevant is unspecified. That leaves the claim with no supporting source. 50.86.240.11 (talk) 20:56, 7 February 2024 (UTC)


 * The only thing that is clear is that insisting that multiplication takes precedence over division, whether in some cases or in all cases, leads to endless argument and confusion. What sources say is: avoid ambiguity. In physics, the matter may be decided, but not in mathematics. And it seems to me unnecessary to have one rule for some disciplines and a different rule for other disciplines. Rick Norwood (talk) 12:02, 11 February 2024 (UTC)
 * I agree, multiplication is typically taken to have higher precedence than division, and this essentially never causes confusion except (a) for introductory students who are not yet used to ordinary notational conventions of written mathematics, and (b) in viral facebook images using notation that is never used in practice, aimed at bored laypeople who only vaguely remember anything they learned in school. –jacobolus (t) 22:41, 11 February 2024 (UTC)
 * "multiplication is typically taken to have higher precedence than division" there is no proove for that claim. Executing symbols logically it is exact the other way around. If you take physics into account, onle from left to right can be right.
 * https://math.ucr.edu/home/baez/physics/General/binaryOps.html 62.46.182.236 (talk) 23:24, 24 February 2024 (UTC)
 * I'm a mathematician. My comment about what mathematicians do and what physicists do is based on my experience, and is not something I'm trying to add to the article. The article should simply state that there are two views on the subject. Actually, three views, since some people evaluate 6/2*x differently from 6/2x.
 * The "left to right" rule is simply wrong, in mathematics, physics, and in everyday arithmetic. The correct rules are that addition and multiplication are commutative and associative and pure addition and pure multiplication can be done in any order. Nobody familiar with numbers is going to evaluate 5 x 765 x 2 from left to right.Rick Norwood (talk) 11:12, 25 February 2024 (UTC)
 * Don Koks' argument about the meaning of "1/2 second" doesn't seem fully baked to me. I would interpret "1/2 second" to probably mean (1/2) second, but in the opposite direction, I would interpret "1 meter / 2 seconds" to probably mean (1/2) meters/second, not (1/2) meters·seconds. Either of these would be improved by better typography: "$$\tfrac12$$ seconds" is entirely unambiguous. –jacobolus (t) 14:09, 25 February 2024 (UTC)

Treatment of internet memes
An editor recently removed this from the lead, stating that it was unnecessary.

My take is that a majority of the traffic to this page is a result of an argument over some ambiguous internet meme. I don't have anything to back this up, it's just a hunch.

Anyway, it seems worth discussing here on the talk page - should this one-sentence treatment be in the lead? I think it should. Other opinions? Mr. Swordfish (talk) 20:50, 11 February 2024 (UTC)


 * Internet memes should not be in the lead section. They are nowhere close to an essential part of understanding the topic. Including 1–2 sentences somewhere in the article body is more than sufficient.
 * Moreover, "knowyourmeme" etc. are not reliable sources. See WP:KNOWYOURMEME. –jacobolus (t) 22:38, 11 February 2024 (UTC)

Hi, Jacobolus. Your comment on your recent edit seems to be a reference to my most recent edit, but none of the things you deleted were caused by my most recent edit, which only changed a single word. I don't think I wrote anything you deleted, though I wouldn't swear to it. I have no objection to taking out all the references to the internet memes, though they may be of interest as a minor point later in the article. Rick Norwood (talk) 22:45, 11 February 2024 (UTC)


 * @Rick Norwood I think maybe you were editing from a previous version of the page and didn't de-conflict the intermediate edits? Your change special:diff/1206338161 was essentially a revert of the previous several edits. If what you were trying to do was add a link to the "resource center" tutoring webpage, I don't think that counts as a reliable source. –jacobolus (t) 23:41, 11 February 2024 (UTC)
 * @Rick Norwood Is it okay with you if we say that implied multiplication "typically" binds tighter than division in academic literature? I personally have never seen a counter-example (with the exception of computer code), and have surely read at least hundreds of examples of papers using notation like $a / bc$ to mean $a / (bc)$, across a variety of technical fields. –jacobolus (t) 01:14, 12 February 2024 (UTC)
 * Most of the sources I am familiar with (in pure mathematics) disagree that it is standard, pointing out numerous problems with the idea. But the important point is that it is ambiguous, and has no advantages. How much harder is it to type a/(bc) than to type the ambiguous a/bc?
 * Rick Norwood (talk) 02:20, 12 February 2024 (UTC)
 * Do you have an example of a source making this claim? Or an example of a source which implicitly uses the opposite convention that $$a/bc = (a/b)c$$? I see these expressions which you claim are ambiguous all the time in pure mathematics works (and computer science, and applied math, and engineering, ...), from the 18th century down to the present day, and have never once seen an example where this the intended interpretation was the other way. Thus this is not really ambiguous in practice; the convention is well established and widely understood. The advantage is that it reduces clutter, which can sometimes be tremendously helpful. –jacobolus (t) 02:34, 12 February 2024 (UTC)
 * I'll try to add more context to this section. Still skimming sources. –jacobolus (t) 06:14, 12 February 2024 (UTC)
 * Okay, I've expanded those sections a bit, added more sources, and taken out most of the questionable self-published sources. Sorry for the history spam, folks: when I reread paragraphs I second-guess the previous wording, and end up making repeated passes of minor changes. –jacobolus (t) 20:51, 12 February 2024 (UTC)

I've been thinking about this quite a bit. Your rewrite has improved the article greatly, and as it stands, I have no strong objection. The bigger problem is that every math book used in K-12 education in the United States lies to its students. For example, they all say that parentheses are an "operation", just like addition and multiplication. And they all say that you must do parentheses first, which is impossible in a problem such as 2+3+(x+y). And they all say you must work from left to right, which is ridiculous in a problem like 283+389-283.

However, getting back to the question at hand. As you not, the problem only occurs with the use of the solidus. I've just glanced through several math books, and they almost always use a horizontal fraction like. I haven't found one that uses x/2 instead of $1/2$x or $x/2$.Rick Norwood (talk) 13:01, 14 February 2024 (UTC)


 * Oops. I could not get Wikipedia to use a horizontal fraction bar. But in the three examples I gave, even thought they use a solidus, they use the solidus in a way such that there is no ambiguity.Rick Norwood (talk) 13:03, 14 February 2024 (UTC)
 * (You can get a vertically stacked "inline" size fraction using  which renders as $$\tfrac12 x$$ or using   which renders as $1⁄2x$.)
 * All of the forms $$x/2,$$ $$\tfrac x2,$$ and $$\tfrac12x$$ are quite common in books and papers in pure math, in contexts where a full-sized fraction wouldn't fit or where vertical space is at a premium; this includes not only "inline" equations in running prose, but also within "display" style equations in nested fractions, superscripts, limits of sums, etc. One of the results that popped up in a web search about order of operations was a quora or stackexchange discussion (can't remember which) in which one participant did some examination of several papers by Fields Medalists, and found multiple examples of fractions like $$a/bc$$ meaning $$a/(bc).$$ In my experience this convention is an unremarkable feature of mathematical writing, and is not confusing in practice. –jacobolus (t) 15:40, 14 February 2024 (UTC)
 * As to your comment about ~5th–8th grade textbooks: you are right that they are typically misleading about this topic. The issue is that mathematicians use notation as a form of communication, whereas middle school textbooks use mathematical notation as a set of prescriptivist rules. The rules established by someone trying to make something very precisely specified don't necessarily match the practical usage of a community of writers. This is similar to the problem of setting down prescriptivist "grammar rules" and teaching them to students; many such rules are routinely violated in professional writing. –jacobolus (t) 15:46, 14 February 2024 (UTC)

@Mr swordfish I've made a bunch of other changes relevant to the ambiguity of multiplication/division, internet memes about it, and related topics. Does the current version address your concern, or do you still think the memes are under-discussed? @D.Lazard, @Jochen Burghardt do these recent changes seem okay to you, or are there parts that seem problematic? –jacobolus (t) 02:11, 17 February 2024 (UTC)


 * Thanks for asking. Meanwhile, I've lost overview, but it seems your edits were fine. - Jochen Burghardt (talk) 19:07, 17 February 2024 (UTC)
 * I think the material that is currently there is very good and your edits are an improvement - including the quote from Hung-Hsi Wu in particular.
 * Here's my take: When I edit articles on Wikipedia, I try to keep the likely audience in mind. Of course, I don't have any audience research data to go by so my idea of the likely audience may by off base, but then nobody else has that research data either so we need to respect others' opinions if they are different than ours. For this article, I don't think the typical reader is a mathematician, scientist, or engineer. I do think that a significant percentage of our visitors are here to answer the question "What is the answer to that stupid math formula on facebook?"  If I am correct about this, then as a service to our audience we should make it easy to find that answer.
 * One way to make that easy was to include a single sentence in the lede. I'm sure that there are other ways. Right now, it's somewhat buried as the last paragraph of the second subsection of the second section and my preference would be to make it easier for the readers to find it. I'm open to other ways to make it more easily discoverable, but a single short sentence in the lede seems to be the simplest way to address my concern. Mr. Swordfish (talk) 21:46, 17 February 2024 (UTC)
 * Personally I think that would be "undue weight" in an article about order of operations. But plausibly this facebook meme could be its own article (there are several reliable sources discussing it) if you really think it would be helpful to people. –jacobolus (t) 22:37, 17 February 2024 (UTC)
 * I don't think it's sufficiently notable to have it's own article, and I don't know that there's much more to say about it than the current paragraph so the article would probably permanently remain a stub. I wouldn't object is someone created it, but I wouldn't advocate for it. And then there's the practical problem of how to title such an article so that people looking for it can find it - I can't think of one.
 * As for undue weight, from what I've seen the only people discussing this topic on line (other than here at this talk page) are the ones arguing about "that stupid math problem on facebook". Mr. Swordfish (talk) 23:14, 17 February 2024 (UTC)
 * In my opinion Wikipedia shouldn't decide on how to organize or fill articles based on what people discuss on social media. YMMV. –jacobolus (t) 00:06, 18 February 2024 (UTC)
 * I can respect that opinion, but it's orthogonal to the question of undue weight which is what I was responding to.
 * My take is that we should serve the audience as opposed to creating the platonic ideal of the perfect article. Mr. Swordfish (talk) 00:12, 20 February 2024 (UTC)
 * To quote WP:UNDUE, "Keep in mind that, in determining proper weight, we consider a viewpoint's prevalence in reliable sources, not its prevalence among Wikipedia editors or the general public." I think mentioning this topic at all is entirely sufficient, and promoting it to the lead doesn't seem justified to me. Maybe we should take the question to a more visible venue like WT:WPM for more feedback, if you think this seems like a controversial position. –jacobolus (t) 05:40, 20 February 2024 (UTC)
 * Point taken about WP:Undue. Been a while since I read it.
 * As for taking it to Wiki Project Mathematics, I have no objections but I'm also satisfied if we settle it here on this talk page. So far my concern seems to have been met with a MEH? and if that's the case so be it. If anyone else wants to weigh in I'm sure they know how. Mr. Swordfish (talk) 22:27, 20 February 2024 (UTC)
 * @D.Lazard, @Jochen Burghardt – any thoughts on including a sentence about facebook memes in the lead section? –jacobolus (t) 07:33, 21 February 2024 (UTC)
 * Another thing that might be helpful is more images. A picture of such a meme directly might help readers find the relevant discussion (though this might be gratuitously distracting).
 * Another type of image that would be nice would be a diagram showing the relation between a mathematical expression and a generated expression tree, maybe even a simple and a more complicated example could be pictured. –jacobolus (t) 22:46, 17 February 2024 (UTC)

ISO 80000
Should we be including ISO standards in the "Mixed division and multiplication"? The standards include authoritative answers to some of the questions and ambiguities, for instance 80000-2-(9.6) states that '÷' "should not be used" for division (see division sign) and 80000-1 (7.1.3) states that the solidus "shall not be followed by a multiplication sign or a division sign on the same line unless parentheses are inserted to avoid any ambiguity". Unfortunately the standards aren't freely available and I have only come across snippets that others have posted elsewhere. StuartH (talk) 05:48, 10 April 2024 (UTC)


 * Seems fine to mention, though I'm not sure anyone follows this per se, in practice. –jacobolus (t) 06:12, 10 April 2024 (UTC)
 * I've added as a minor update for now - I think you're right that very few people even know about the standard but it is still the standard and probably warrants a mention. StuartH (talk) 09:24, 10 April 2024 (UTC)

Picture
I like the idea of a picture at the top of the page, and I even like the picture. But, sadly, it seems much too complicated for readers who are not mathematicians. Rick Norwood (talk) 10:33, 16 July 2024 (UTC)

Maybe something like this?

http://sweeneymath.blogspot.com/2011/05/how-i-see-exponent-rules-and-log-rules.html

Rick Norwood (talk) 10:40, 16 July 2024 (UTC)