Message Boards Message Boards

1
|
52120 Views
|
64 Replies
|
15 Total Likes
View groups...
Share
Share this post:

Math breaking Facebook: 6 ÷ 2(1+2) = ?

Posted 9 years ago

Greetings Wolfram Alpha,

I am one of the administrators for The Enlightened Consciousness Group on Facebook which has 57,000 members who are fighting over the answer to this seemingly simple equation. The variance in answers and them showing their work has me questioning my own math. 6 ÷ 2(1+2) = ?

The three most common answers on this topic are 9,1, and 7. The logic behind these answers has me questioning my own basic mathematics, so I come to the authority for the answer. The biggest discrepancy is due to the order of operations and that 2 touching the parenthesis.

I was taught to simplify the inside of parenthesis, then work left to right using PEMDAS. Using this method I get 6 ÷ 2(3) = 3(3) = 9 Others have said that you must distribute the 2 before division because it touches the parenthesis. Their math shows 6 ÷ 2(1+2) = 6 ÷ 2 + 4 = 7 Others have said that you evaluate the left and right side of the obelus as independent expressions. Their math shows 6 ÷ 2(1+2) = 6 ÷ 6 = 1

Finally, there was an article written on slate.com written by a math teacher, who asserts that unless specifically stated there is no definitely right way to interpret the equation--and that order of operations is not always appropriate.

Please advise!

Orion Reynolds

POSTED BY: Orion Reynolds
64 Replies
Posted 1 month ago

Hi Orion,

Perhaps you will change your mind about using the Order of Operations as PEMDAS, after considering the word problem below, while remembering what a "term" is & that a single term (e.g. "2a") does not need parentheses encasing it to be understood as a single quantity (the product of its factors), and how to divide by a monomial:

In this scenario, I own & run a diner which serves a Breakfast Special from early morning opening until 11 AM. Today, at 10:58 AM, the last of the Breakfast Special customers left the restaurant. But then, at 10:59 AM, two separate groups of a dozen people each come into the diner, wanting to get the Breakfast Special. The 2 separate groups are each seated at their own table. Each member of the 2 groups, consisting of a dozen people apiece, wants eggs. I go into the restaurant kitchen to see how many eggs I have left. When I open the refrigerator, I see that there are 4 full cartons of a dozen eggs each, left on the shelf

Split evenly among the Breakfast Special customers in the diner, how many eggs does each customer get?

The proposition is a single quantity of eggs split evenly among a single quantity of customers:

4 dozen eggs divided by 2 dozen customers

4 dozen ÷ 2 dozen = ?

That same proposition can also be viewed as 4a÷2a when a=12.

In solving this problem, I'd appreciate it if you would please show each mathematical step you take, from beginning to end, so that it can be fully understood how you arrived at the correct answer. If you find more than one mathematical method of solving the monomial division expression in this word problem, please show all of the steps in each alternative.

~ ~ ~ ~ ~ ~ ~

I look forward to seeing your methodology to find the correct answer to the word problem.

-- Dee

POSTED BY: Dee Rosenberg

This being a forum based on Wolfram technologies, it's not cheating to avail oneself of the software.

Quantity[4, "dozen"]/Quantity[2, "dozen"]

(* Out[2]= 2 *)
POSTED BY: Daniel Lichtblau
Posted 25 days ago

Thank you for commenting on what I wrote. It's not that I don't know how to solve the word problem -- I was illustrating a point about how to view juxtaposition.

Obviously, the answer to the question of how many eggs each diner customer gets is 2. The word "dozen" equals 12, so 12 is a factor of both of those terms, 4 dozen & 2 dozen, respectively. Thus, dividing 4 dozen by 2 dozen is written mathematically as:

4(12)/2(12)

...or as the top-and-bottom fraction of 4(12) over 2(12).

That is the same division expression as the monomial division expression of 4a/2a when a=12.

In no Basic Algebra textbook I have ever seen, are young math students instructed to ALWAYS encase a monomial inside parentheses in order to be understood to be a single combined quantity, as illustrated by 4 dozen eggs being understood to be a single combined quantity of 48 individual eggs (4 packs of 12 eggs each) & 2 dozen customers is understood to be a single combined quantity of 24 customers (2 groups of 12 customers each).

There is nothing confusing or ambiguous about the expression 6 ÷ 2(1+2), once one remembers the definition of a term (specifically, a monomial) which holds the value of the PRODUCT of its factors, the rules of the Distributive Law (which directly addresses juxtaposition), and how to divide by a monomial. It is also important to remember, as taught in 5th grade math: that Fraction=Division & therefore, Division=Fraction.

4 dozen divided by 2 dozen is precisely the same expression as the internet division meme from 2011:

48 ÷ 2(9+3)

Factoring out 48 makes the expression...

4(9+3) ÷ 2(9+3)

...or you could say it's 4 dozen divided by 2 dozen.

In any case, the quotient is 2, not 288 as the PENDAS crowd keeps insisting.

POSTED BY: Dee Rosenberg

My point is that this should absolutely not be written as 4(12)/2(12). Once one posits "four dozen" of this and "two dozen" of that, these are implicitly grouped (in your terms, "combined quantities"), that is to say, as (4x12) and (2x12). So ungrouping them is kinda a bad idea.

I see the claim "There is nothing confusing or ambiguous about the expression 6 ÷ 2(1+2)..." I would raise the question of whether one should treat any differently the expression 6/2(1+2). If the answer is "no" then I'm hard-pressed to buy that; that expression must evaluate to 9 (I mean, how do you justify first multiplying the 2 by the (1+2). That would be operating from the right, which is to say wrong, end of the expression. I do not think this is taught anywhere.) And i the answer is "yes" then I have to ask why we treat one division sign differently from another. (The answer to that is "we don't".)

Getting back to PEMDAS, the rule is that equal precedence goes left to right; this is taught in schools I believe. And it's the dominant convention nowadays. Not something I would choose to fight, and, in particular, I'd not want to teach algebra in a way that ignores it (even if it is not explicitly stated).

POSTED BY: Daniel Lichtblau
Posted 23 days ago

PEMDAS is taught in elementary school. In 9th grade Basic Algebra, however, a new set of rules is taught which supersede the PEMDAS construct. Included in the superseding rules are defining what a term is (specifically in this case, what a monomial is) & how to divide by a monomial.

The terms "4a" & "2A" are monomials. If you believe that those single terms need to always be encased in parentheses when part of a monomial division expression, please cite specific teaching websites which instruct young algebra students that this is REQUIRED. Here are some teaching sites which say the contrary:

from Mathway's calculator Algebra Examples: https://www.mathway.com/popular-problems/Algebra/1012959

" 2x÷2x

Rewrite the division as a fraction:

shown as 2x over 2x

Cancel the common factor of 2.

shown as x over x

Cancel the common factor of x.

1 "

~ ~ ~ ~ ~ ~ ~

Lumen Learning Courses: https://courses.lumenlearning.com/uvu-introductoryalgebra/chapter/9-5-dividing-polynomials-by-a-monomial/

"Dividing Polynomials by a Monomial"

"When there are coefficients attached to the variables, we divide the coefficients and divide the variables.

EXAMPLE Find the quotient: 56x^5 ÷ 7x^2

Solution

Rewrite as a fraction

shown as 56x^5 over 7x^2

...Answer

56x^5 ÷ 7x^2 = 8x^3 "

~ ~ ~ ~ ~

from Cue Math teaching website: https://www.cuemath.com/algebra/dividing-monomials/

"Practice Questions on Dividing Monomials"

Q.1. Divide. 15a^2b^3 ÷ 5b

Correct answer is shown as 3a^2b^2.

That can only be true if 15a^2b^3 is the entire numerator & 5b is the entire denominator of the top-and-bottom fraction, even though there are no parentheses anywhere in the original horizontally written division statement (using an obelus).

~ ~ ~ ~ ~ ~ ~

from Greene Math teaching website: https://www.greenemath.com/Algebra1/33/DividingPolynomialsbyMonomialsLesson.html

"Dividing a Polynomial by a Monomial"

See examples #1, #2 & #3: All are originally written as horizontal expressions using an obelus as the division symbol, which are all immediately rewritten as top-and-bottom fractions with the monomial denominator being the entire term to the right of the division sign -- with no parentheses around it.

In example #1, the denominator is 8x^2

In example #2, the denominator is 6x^2

In example #3, the denominator is also 6x^2

~ ~ ~ ~ ~ ~ ~

...and there are plenty more examples all over the web of how young algebra students are taught to divide by a monomial, in which the original expression uses an obelus to represent division, and are then instructed to "Rewrite as a fraction," with the whole monomial term to the right of the obelus as the entire denominator. I can find no examples of young students being told to use only the monomial's numerical coefficient in the division before multiplying that quotient by the other factor or factors of the monomial.

If you honestly believe that to be incorrect, please show some examples from algebra teaching websites which specifically instruct young students NOT to consider a monomial term such as "4a" or "2a" (without parentheses completely encasing the entire monomial) as having a single value which is the PRODUCT of its factors.

POSTED BY: Dee Rosenberg

I make no claim about what's taught in schools. I suspect what you describe is as it was taught even when I took algebra. From a teaching perspective maybe that makes sense, at least if the obelus is regarded as strictly a binary operator.

Here is the catch though. We now have students using calculators and computers in math and also using them post-school in their careers. Computer languages need to follow a grammar, and that grammar needs to be unambiguous. So PEDMAS is back in the picture. I guess one has to choose which convention makes the most sense based on where the question arises (e.g. in an algebra classroom, or in an automated computation).

Best in my view would be to retain the two-dimensional division operation for classroom purposes. I think that handles the ambiguity without sacrificing the integrity (such as it may be) of monomials.

POSTED BY: Daniel Lichtblau
Posted 22 days ago

I just showed what is currently being taught on math teaching websites, as to how to divide by a monomial. See Lumen Learning.com, Cue Math.com, Greene Math.com, BYJUS.com teaching website, etc., instructing students to "Rewrite as a fraction," when they are presented with a linearly written division expression using an obelus as the division symbol. That is because, remembering back to 5th grade math, students are taught that Fraction=Division (and therefore, Division=Fraction). On those teaching websites, there are a number of examples given to current Basic Algebra students, with the solutions, which show this clearly to be the case. Here are a few more examples of this, on math teaching websites to help current Basic Algebra students :

from Teachoo .com:

https://www.teachoo.com/9708/2961/Dividing-monomial-by-monomial/category/Dividing-two-monomials/

"Dividing Monomial by Monomial"

"Let's do some more examples

6x^3 ÷ 3x^2

... = 2x "

~ ~ ~ ~ ~ ~ ~ ~

from Cool Math .com: https://www.coolmath.com/algebra/05-division-of-polynomials/01-dividing-by-monomials-01

"Dividing by Monomials"

"Let's do one

(18x^4 -10x^2 + 6x^7) ÷ 2x^2

Let's rewrite it like this:

18x^4 -10x^2 + 6x^7

--------- [over] -------- =

2x^2

...

9x^2 - 5 + 3x^5

~ ~ ~ ~ ~ ~ ~ ~

from Mometrix Test Preparation: https://www.mometrix.com/academy/dividing-monomials/

See example #3 on the video:

8x^5y^3 ÷ x^2y

Note that no parentheses are used in that horizontal division expression.

The eventual answer is shown to be 8x^3y^2...which only works if 8x^5y^3 is the entire numerator & x^2y is the entire denominator of the top-and-bottom fraction.

~ ~ ~ ~ ~ ~ ~ ~ ~

If you still need to see more of this from other math teaching websites, just say the word & I will provide additional examples of students being instructed to rewrite monomial division expressions as a top-and-bottom fraction, when it was, originally written horizontally with an obelus without parentheses around the divisor (denominator) monomial.

~ ~ ~ ~ ~ ~

In teaching your students how to 'process' a division expression such as a/b/c, yes, additional parentheses are definitely necessary, to indicate the order of the multiple divisions in the expression. When there is only one division symbol in an expression, however, it is clear that the dividend/numerator is everything to the left of the division symbol (slash or obelus) & the divisor/denominator is everything to the right of the division symbol. See above examples from teaching websites.

In no Basic Algebra textbook are students taught that a numerical coefficient of a term can be separated from its other factor or factors -- with or without parentheses surrounding the term. Quite the contrary -- students are taught that a monomial term such as "2a" holds a SINGLE VALUE, which is the PRODUCT of "2" & "a." When a=(2+2), the monomial term 2a equals 8.

As demonstrated on a myriad of math teaching websites showing students how to divide by a monomial, the value of a monomial does not change when a monomial such as "2a" is preceded by a division symbol (slash or obelus). The two in "2a" is not a separate, stand-alone quantity any more than the two in "2 dozen" is a stand-alone quantity. Two dozen equals 24, even when there's a division symbol immediately to the left of that term. Once again, see all those Basic Algebra teaching websites for confirmation of how to divide by a monomial.

~ ~ ~ ~ ~ ~

As for students using calculators, if they are taught the proper way to execute monomial division in the first place, then if they do not get the same result on a calculator, they know it is due to faulty programming. Some manual & online calculators do get it correctly, however. If they get what they understand is an erroneous answer from a calculator program, then they can go back & add more (unnecessary) parentheses.

With the proper knowledge & understanding of how to divide monomials, there is nothing confusing or ambiguous about an expression such as 6 ÷ 2(1+2). 8 ÷ 2(2+2), or 48 ÷ 2(9+3).

POSTED BY: Dee Rosenberg

I wonder how many calculators with symbolic capabilities follow this convention.

This one does not.

https://web2.0calc.com

Likewise:

https://mathsolver.microsoft.com/en/solve-problem/a%2Bb%60divc

https://www.mathway.com/Algebra

https://www.wolframalpha.com/input/?i=%5B%2F%2Fmath%3Aa%2Bb%2Fc%3Dd%2F%2F%5D

and Google's online calculator.

This one gives choices and explanations for ordering operations. https://www.calculatorsoup.com/calculators/math/math-equation-solver.php

These next have the courtesy of rewriting as you go, so at least you know how they parse your input (they all require parens to get the effect shown in the pedagogy sites noted earlier), that is to say, they support PEDMAS at least to the limited extent that I checked.

https://www.geogebra.org/scientific?lang=en

https://www.mathpapa.com/algebra-calculator.html

https://www.polymathlove.com/polymonials/midpoint-of-a-line/symbolic-equation-solving.html

https://classcalc.com/scientific-calculator

https://www.desmos.com/scientific

https://www.symbolab.com/solver/equation-calculator/x%2By%5Cdiv3?or=input

I wonder how students reconcile this. Maybe they just get used to the difference and expect one convention in class and another online and/or in computer programs.

POSTED BY: Daniel Lichtblau
Posted 22 days ago

Here's how students reconcile poorly programmed calculators & the correct procedure to do monomial division:

LEARN TO EXECUTE MONOMIAL DIVISION PROPERLY, IN THE FIRST PLACE!

When using calculators, it might be a good idea to use additional parentheses for the calculator to interpret the expression correctly, in the event that a calculator programmed was by someone who missed that day in 5th grade math when it was taught that Division=Fraction (and vice versa) & also missed that day in 9th grade Basic Algebra when the teacher went over what a "term" is (specifically, a monomial) & how to divide by a monomial.

Again -- once it is understood what a monomial is & the correct procedure to divide by a monomial, there is nothing confusing or ambiguous about an expression such as 6 ÷ 2(1+2). 8 ÷ 2(2+2), or 48 ÷ 2(9+3). It's monomial division, with the entire term to the right of the division symbol being the denominator/divisor. And the numerator/dividend (the term to the left of the division symbol) can be factored, too. For example:

6 ÷ 2(1+2) =

6=2(1+2)

...making the expression...

2(1+2) ÷ 2(1+2) =

...which is the same statement as...

2a ÷ 2a

...when a=(1+2)...

...which can also correctly be written as the top-and-bottom fraction of 2a over 2a.

POSTED BY: Dee Rosenberg

That would be nearly every online calculator and I suspect every symbolic programming language. Except those languages are correct, insofar as they require and enforce an unambiguous grammar. Which you will not get from the rules that apply to a quotient of two expressions (I avoid use of "monomials" because it's not clear that expressions will always be monomials).

Before you insult the people who program those calculators (people like myself), maybe consider the possibility that we are familiar with requirements of unambiguous grammars, and that these requirements go well beyond infix operators from simple arithmetic expressions. Also bear in mind that these operators, division among them, are (often) not restricted to binary. Hence you'll need to be certain that whatever convention you apply generalizes to three or more arguments.

For what it's worth, I did not miss those days in class (granted, they may have been different years). Yes, division=fraction. But that alone does not tell a parser where to end a subexpression, one needs more rules for that.

I guess another point to consider is the extent to which it's worth fighting against prevailing technology. These calculators and programming languages are not going to change just to accommodate the particular interpretation you are providing. It would be good if students know to plan accordingly.

POSTED BY: Daniel Lichtblau
Posted 21 days ago

You say, "For what it's worth, I did not miss those days in class (granted, they may have been different years). Yes, division=fraction. But that alone does not tell a parser where to end a subexpression, one needs more rules for that." Actually, it does tell the parser exactly where the division occurs, when it comes to division by a single term!

I just showed you a boatload of examples from a number of online teaching sites, demonstrating that Division=Fraction. Here's more on that:

from Teaching Better Lesson.com Common Core:

https://teaching.betterlesson.com/browse/common_core/standard/272/ccss-math-content-5-nf-b-3-interpret-a-fraction-as-division-of-the-numerator-by-the-denominator-a-b-a-b-solve-word-problems-invo?from=standard_level1

"Interpret a fraction as division of the numerator by the denominator (a/b = a ÷ b)."

~ ~ ~ ~ ~ ~ ~

Australian Association of Mathematics Teachers: https://topdrawer.aamt.edu.au/Fractions/Big-ideas/Fractions-as-division

"Fractions as Division"

"Anyone who has studied secondary school mathematics would probably be comfortable with the convention of 'a over b' meaning 'a divided by b'."

~ ~ ~ ~ ~ ~ ~

from ClubZ Tutoring:

https://clubztutoring.com/ed-resources/math/fraction-bar-definitions-examples-6-7-5/#:~:text=Fraction%20Bar%3A%20The%20fraction%20bar,between%20the%20numerator%20and%20denominator

"FAQ Section

Q1: Can the fraction bar be replaced with the division symbol (/)?

A1: Yes, the fraction bar and the division symbol (/) are interchangeable and convey the same meaning in mathematical notation."

~ ~ ~ ~ ~ ~ ~

from MathOnlyMath .com:

https://www.math-only-math.com/Fraction-as-Division.html#:~:text=Fraction%20as%20division%20is%20also%20known%20as%20fraction%20as%20quotient.&text=If%208%20biscuits%20are%20distributed,4%20%C3%B7%202%20%3D%202%20biscuits

"Fraction as Division"

"Fraction as division is also known as fraction as quotient."

"For examples the divisions can be expressed as fractions.

(i) 8 ÷ 2 = 8/2

(ii) 12 ÷ 4 = 12/4

(iii) 5 ÷ 3 = 5/3

(iv) 15 ÷ 5 = 15/5

(v) 11 ÷ 19 = 11/19 "

~ ~ ~ ~ ~ ~ ~ ~

from Third Space Learning:

https://thirdspacelearning.com/us/math-resources/topic-guides/number-and-quantity/fractions-as-division/#:~:text=Alternatively%2C%20you%20can%20also%20write,the%20denominator%20of%20the%20fraction

"Interpreting fractions as division is when you understand that a fraction represents a division operation between its numerator and denominator. In other words, when you have a fraction

a

--

b ,

you can interpret it as 'a divided by b,' or a ÷ b."

"Alternatively, you can also write a division equation as a fraction.

To do this, you would write the dividend of the equation as the numerator of a fraction and the divisor of the equation as the denominator of the fraction.

For example:

3 ÷ 4 =

3


4 "

~ ~ ~ ~ ~ ~ ~

from Algebra Class .com:

https://www.algebra-class.com/dividing-monomials.html

"Dividing Monomials"

"Remember: A division bar and fraction bar are synonymous!"

~ ~ ~ ~ ~ ~ ~

from Siyavula Technology Powered Learning:

https://www.siyavula.com/read/za/mathematics/grade-8/algebraic-expressions-part-2/08-algebraic-expressions-part-2-02

Grade 8

Algebraic Expressions

"WORKED EXAMPLE 8.2

DIVIDING ALGEBRAIC MONOMIALS

Simplify the following expression:

24t^7 ÷ 4t^5

SOLUTION:

Step 1: Rewrite the division as a fraction

This question is written with a division symbol (÷), but this is the same as writing it as a fraction.

24t^7 ÷ 4t^5 =

24t^7


4t^5

...= 6t^2 "

~ ~ ~ ~ ~ ~ ~

from SlideShare a Scribd Company:

https://www.slideshare.net/slideshow/94-16609182/16609182

"Dividing by a polynomial"

"Example 3

Divide a polynomial by a monomial

Divide 4x^3 + 8x^2 + 10x by 2x.

4x^3 + 8x^2 + 10x ÷ 2x =

Write as a fraction

4x^3 + 8x^2 + 10x

------------------------- =

2x

Simplify

2x^2 + 4x + 5 "

~ ~ ~ ~ ~ ~ ~

from Toppr teaching website:

https://www.toppr.com/guides/maths-formulas/division-formula/

"Method of Division"

The number which is divided is the dividend. And the number in which the dividend is being divided is the divisor. The answer to a division problem is the quotient. Example signs for “a divided by b”:

a ÷ b &

a

--

b

So the Division Formula is

Dividend ÷ Divisor = Quotient OR

Dividend

------------- = Quotient

Divisor "

~ ~ ~ ~ ~ ~ ~

As illustrated by the above examples from teaching websites, the vinculum (fraction bar), the solidus (slash) & the obelus (division sign) are all exactly the same because they all mean "divided by."

In a linearly written division expression using an obelus (division sign), when dividing by a monomial, the entire term to the right of the division sign is the denominator. There is nothing confusing about that at all.

A single term (monomial) cannot be ripped apart & only the coefficient used in a separate operation. because its value is the PRODUCT of its factors. Here's what's wrong with using only the coefficient in the division operation in a linearly written division expression:

Let's look at the simple monomial division expression of x divided by x. Given that x does not equal zero, that quotient is 1, whether the division expression is written with a vinculum (fraction bar), a solidus (slash) or an obelus (division sign).

Every Basic Algebra textbook says that a variable by itself actually has a numerical coefficient of 1, so x=1x. Writing that same division expression of "x divided by x," using its coefficient of 1...

1x


1x

...or it can be written as...

1x/1x

...or as...

1x÷1x

As such, in all cases, the quotient should always be 1.

Using the Order of Operations as PEMDAS, as you & some other prescribe (i.e. breaking apart a monomial & using only its coefficient as the divisor):

1x÷1x =

1*x = 1x

1x÷1 = 1x

1x*x = 1x^2

No, the non-zero monomial "x" (also correctly written as "1x") divided by itself is not "x squared."

"1x" is a single term (a monomial) with a single value which is the PRODUCT of its factors. It never needs parentheses around it to be understood as one term which holds a single value, any more than the number 46 does, even though 46 has implied multiplication (4 tens & 6 ones) and implied addition (4 tens + 6 ones). Therefore, a monomial cannot be broken apart & used in separate operations.

That also applies to monomials such as "4a" & "2a." Given that the variable "a" does not equal zero, 4a divided by 2a has a quotient of 2, regardless of whether the expression is written with a vinculum (fraction bar), a solidus (slash) or an obelus (division sign).

Here's an example of a calculator getting it right:

from Mathway: https://www.mathway.com/popular-problems/Algebra/1012959

"Enter a Problem"

" 2x ÷ 2x

Rewrite the division as a fraction

2x


2x

... 1 "

~ ~ ~ ~ ~ ~ ~ ~

And from Texas Instruments:

“Implied Multiplication Versus Explicit Multiplication on TI Graphing Calculators”

https://education.ti.com/en/customer-support/knowledge-base/ti-83-84-plus-family/product-usage/11773#:~:text=Implied%20multiplication%20has%20a%20higher,as%20they%20would%20be%20written

"Does implied multiplication and explicit multiplication have the same precedence on TI graphing calculators?

Implied multiplication has a higher priority than explicit multiplication to allow users to enter expressions, in the same manner as they would be written. For example, the TI-80, TI-81, TI-82, and TI-85 evaluate 1/2X as 1/(2X), while other products may evaluate the same expression as 1/2X from left to right. Without this feature, it would be necessary to group 2X in parentheses, something that is typically not done when writing the expression on paper."

~ ~ ~ ~ ~ ~ ~

There are plenty more examples of calculators getting the proposition correct. But because some calculator programmers missed those days in school when it was taught that Division=Fraction & how to divide monomials, students can be instructed to use additional parentheses when entering monomial terms into a calculator. Students must be helped to understand that a calculator can get things wrong because the programmer did not have a strong understanding of the underlying concepts. -- "Garbage in, Garbage out."

POSTED BY: Dee Rosenberg

There is no dispute that division and fraction can be seen as equivalent. You need not have gone to so much painstaking research to back that point; it's a given. But here is a point of actual dispute. "In a linearly written division expression using an obelus (division sign), when dividing by a monomial, the entire term to the right of the division sign is the denominator. There is nothing confusing about that at all." First, it is not obvious that this should apply for non-binary operators e.g. a divided by b divided by c. More importantly, the operator precedences in use are long established, at least in existing programming languages. And most (all?) of these give multiplication and division the same precedence, in effect treating a/b as a*(b^(-1)) (extra parens added to emphasize precedence) just as binary subtraction a-b is treated as a+ ((-1)*b). Were the infix division operator to extend to include everything to its right as denominator then this equal precedence would be lost. Now maybe instead you simply want associativity to be from the right, that is, a*b/c*d associating as a*(b/(c*d)), but a*b/c*d+e meaning a/(b/(c*d))+e? That's closer to viable, except it will conflict with operator associating from the left which I believe is the commonly used standard for the plus and times operators (though not for power). And it means associating / and * in strange ways ways: a/b*c becomes a/(b*c) but a/b/c becomes (`/b)/c (that at least is the common standard in use).

"Every Basic Algebra textbook says that a variable by itself actually has a numerical coefficient of 1, so x=1x. Writing that same division expression of "x divided by x," using its coefficient of 1..." True enough. Equal has lower precedence than times and in arithmetic expressions the part to the right and the part to the left are effectively "units". But next, "..or it can be written as...1x/1x" is not actually the same as 1x=1x. As ever, it's all about the grouping.

The TI example is interesting. It provides a mode that supports the interpretation you have in mind. To do so it supports two separate infix multiplication operators, space and *, with the former having higher precedence than division. It would be interesting to know if the result it gives for a b/c d+e/f+g h is what you expect.

"Students must be helped to understand that a calculator can get things wrong because the programmer did not have a strong understanding of the underlying concepts. -- "Garbage in, Garbage out." Oh good grief, the insults again. Instead maybe look at a compiler textbook on parsing of arithmetic expressions. It will be...informative. One I recommend is The Principles of Compiler Design (still a great book) chapters 4-5.

I guess another point to consider is that the programming languages are not going to change. Claiming they are all wrong is just noise, and in no way helps the students. The languages are operating exactly as designed, and the designs are not going to change in this regard (and it might be worth considering just how badly you do not want any such change to happen).

Anyway, all this is really outside the scope of the Wolfram Community forum.

POSTED BY: Daniel Lichtblau
Posted 21 days ago

No, not "most if not all" computer calculators treat 1x/1x the same as you keep insisting -- that multiplication & division have the same precedence from left to right & that the numerical coefficient can be detached from the other factor(s) of a monomial & used in a separate operation. I showed you the Texas Instruments write-up on the issue. Here's an example of how messed up calculators are & the reason that students need to be properly educated not to just accept a result from a calculator as if it came from God:

Wolfram Alpha gives two different answers to the same division expression:

MATH INPUT:

https://www.wolframalpha.com/input?i2d=true&i=6%C3%B72%5C%2840%291%2B2%5C%2841%29

6 ÷ 2(1+2) =

9

But...

NATURAL LANGUAGE INPUT:

https://www.wolframalpha.com/input?i2d=true&i=Divide+6+by+2%5C%2840%291%2B2%5C%2841%29

Divide 6 by 2(1+2) =

6


2(1+2)

one ~ ~ ~ ~ ~ ~ ~

That demonstrates that the programmer's understanding was poor, when it came to the underlying principles of Fraction=Division (so Division=Fraction) & how to properly execute monomial division. The programmer failed to account for the fact that, as taught in 5th grade math, since Fraction=Division (and vice versa) & the vinculum (fraction bar), the solidus (slash) & the obelus (division sign) all mean "divided by," and are thus interchangeable.

POSTED BY: Dee Rosenberg

The claim about most/all was specifically in reference to programming languages. The on-line calculators I noted in a prior post also mostly follow the convention I and others have stated. But I make no claim about hand-held calculators and I have certainly not checked on-line calculators other than those I noted. And agreed, TI shows an exception, albeit using two different infix multiplication operators (if I read correctly).

The Wolfram|Alpha results are also interesting insofar as the natural language interpreter shows an effort in effect to read the intent of the user. Which might or might not be correct. Actually I've seen cases of the same user wanting the same computation to do different things (albeit these came months if not years apart). One conclusion I draw is that determining user intent will remain tricky for some time to come, even for modern AI.

I do not see that any programmer's understanding was poor from the examples shown. These simply indicate that the computation world is following a convention other than the one you prefer for teaching. But these are "just" conventions, and I would like to believe that underlying concepts are of greater importance. A student with an understanding of basic polynomial manipulation will likely have the wherewithall to adapt to different parsing conventions.

Here is a take on the debate from another Wolfram Community poster.

Different take, I gather from a math teacher. It appears to endorse correctly applied PEDMAS.

And another, advocating more explicit grouping.

It should also be noted that there is math beyond high school. Here again, conventions may vary. Best to not lock the students too tightly into a particular mindset. And maybe to bear in mind that this level is what produces all those coders who apparently missed a couple of crucial days in 5th and 9th grade.

POSTED BY: Daniel Lichtblau
Posted 21 days ago

This is why I've just disciplined myself to use the Oxford comma rather than rely upon someone's particular justification for why sentences can be written unambiguously without it.

POSTED BY: Eric Rimbey
Posted 21 days ago

If you want, I can show you other online calculators which correctly interpret monomial division as a fraction (i.e. the term to the left of the obelus is the numerator & the term to the right is the denominator. One cannot generalize how the programming of calculators is set up across the board. The quality & accuracy of the programs vary widely based on the skill & understanding of the individual programmer.

A monomial does not require parentheses surrounding it -- see all those examples taken from teaching websites, telling young math students to "Rewrite as a fraction," when the original expression was written with an obelus, without parentheses around the monomial divisor. The fraction then shown in those lessons for young math students was the whole term to the right of the obelus was the entire denominator of the top-and-bottom fraction.

There is absolutely nothing confusing or ambiguous about monomial division expressions. There is only ever one correct answer. 6÷2(1+2)=1 because it's 2a÷2a when a=(1+2) ; 8÷2(2+2)=1 because it's 2b÷2b when b=(2+2) ; 48÷2(9+3)=2, because it's 4x÷2x=2 when "rewriting as a fraction" with the whole monomial term to the right of the obelus being the denominator. The only time parentheses are necessary around a monomial is when there is more than one division symbol in the expression, to indicate the correct order of the divisions (i.e. to show where the "main" denominator is).

Whether an expression is written with a vinculum (fraction bar), a solidus (slash) or obelus (division sign), they have the same quotient since they are all 100% synonymous with one another (see 5th grade math). Division by a monomial is all very simple & straightforward, once the rules are clearly understood.

POSTED BY: Dee Rosenberg
Posted 21 days ago

Was this reply intended for me?

POSTED BY: Eric Rimbey

[Eric, I thought I was replying to the one above yours, so apologies if it is grouped like it’s intended for you.]

Only ever one correct answer…for a given convention. If the intent here is to troll for a flame war, this isn’t the right forum. If the intent is to insist that a particular convention is sacrosanct, again it’s the wrong forum. If the intent is to discuss relative advantages of one or another implicit grouping convention, I’m not seeing anything to support the notion that a certain precollege classroom convention should extend to universal usage. I do know of reasons to not do that, but it seems they get ignored (recall mention of associating multiplication operators from the left, something this 9th grade convention violates). The world of mathematical and scientific computation goes past high school, and computer languages have their own needs. Different houses, so to speak, with different rules.

I’m not too worried about what get’s taught in 9th grade math. I am getting a bit curious about what’s happening in math ed though. Should you respond with something of new interest (that is, not more on-line math ed and not more about the proper care and feeding of monomials) then I will take a look. Otherwise I think this has run its course.

POSTED BY: Daniel Lichtblau
Posted 21 days ago

No worries, Daniel. FWIW, I agree with your points. Personally, I think this thread ran its course as soon as it started (apparently 9 years ago!). Why would anyone get het up over something purely conventional like order of operations?

POSTED BY: Eric Rimbey
Posted 18 days ago

A monomial is defined as one term with a single combined value (i.e. the product of its factors). There is no 'convention' anywhere that says that a coefficient can be ripped apart from a monomial such as "2a" & the coefficient used in a separate operation from the rest of the single term.

The fraction bar, the slash & the obelus are all synonymous with one another, since they all mean "divided by." See 5th grade math. Also see all those examples of monomial division I supplied (from numerous algebra teaching websites), in which a monomial division expression written with an obelus (division sign) such as 2a÷2a can also be written as the top-and-bottom fraction of 2a over 2a (keeping the entire monomial denominator "2a" together as the single unit it is -- like the single term "2 dozen"). That categorically demonstrates that additional parentheses are not strictly necessary around a monomial in a division expression written with an obelus, to be understood as one term with a combined value of the product of its factors.

As a result, the monomial expression 6÷2(1+2) is 2a÷2a when a=(1+2).

As for using computers & calculators, students need to first understand how to correctly manually solve monomial division expressions. No one should ever consider a computer or calculator to be incapable of error. After learning the correct methodology, students can be told that when feeding an expression into a computer or calculator, they should add parentheses around monomial terms, in case the program was written by someone who missed those days in school when the teacher went over the fact that all division symbols are interchangeable with one another & when monomial division was taught (with examples written with an obelus, such as those I provided in an earlier post, in which students were instructed to "Rewrite as a fraction.").

Nothing is confusing or ambiguous about the monomial 2a divided by the monomial 2a when a=(1+2). A non-zero quantity divided by itself always equals one, regardless of the division notation used in writing it.

POSTED BY: Dee Rosenberg
Posted 18 days ago

Look, the fundamental mathematics for the typical number systems you're talking about (the stuff we encounter in k-12 curriculum) defines multiplication and addition as binary operations. It does not define order of operations. It assumes that operations will be specified unambiguously. The semantics don't dictate a presentation, the burden is on the presentation to indicate the semantics. In today's world, parentheses are the presentation mechanism for indicating the grouping of these binary operations. Any particular convention for order of operations is simply an agreement within a community of people about which parentheses can be omitted. Different communities can come up with different conventions and communicate their intentions perfectly clearly. Your argument simply boils down to you justifying your preferred convention. And that's fine, absolutely and totally fine. And if you are working in a community that shares that preference, then all is good. But there is no deep significance to it (it has nothing to do with the math itself), and you cannot demand universal acceptance. Different communities will find different conventions useful. I'm sure that accountants, engineers, scientists, school teachers, professional mathematicians, software developers, etc, not to mention all of those communities at different times in history, all have different perspectives that could easily lead to different conventions, and the underlying mathematical semantics survive intact in every case. The sequential constraints of a mechanical adding machine would probably lead to different conventions than those arising in the presence of modern GUIs. Given that conventions are not rigorous mathematical concepts, it's not surprising that ambiguous cases arise, especially when communication crosses community boundaries. I think the practical thing to do in such cases is simply to include more parentheses. You seem to think the practical thing to do is force everyone to adopt a universal convention. Try telling all English speakers to settle on one spelling convention, one pronunciation convention, or one dictionary. It's just not a practical exercise. It's also completely unnecessary, as we all know how to disambiguate the expressions when needed. (Well, I'd like it to be completely unnecessary, but just these kinds of assumptions have led to serious software defects. I'd argue that's actually the result of being unwilling to accept the arbitrariness of conventions--being so self-referential that you can't even conceive that your assumptions aren't universal.)

POSTED BY: Eric Rimbey
Posted 17 days ago

No, I have not been "unwilling to accept the arbitrariness of conventions--being so self-referential that you can't even conceive that your assumptions aren't universal." I have shown voluminous examples, from all over the world, on a myriad of math teaching websites, of how monomial division is executed when written with an obelus (division sign). On website after website, the monomial division expression is shown as a top-and-bottom fraction, with the monomial to the right of the division sign as the WHOLE denominator.

If you want to keep insisting that converting a monomial division statement to a top-and-bottom fraction is NOT regarded as the standard convention across the board, please show some hard evidence of how students & teachers across the world are teaching how to execute monomial division such as 4a÷2a, given that "a" does not equal zero. Please provide links to multiple websites which instruct, step by step, how to execute that division by a monomial which is originally written with an obelus & no parentheses around the term to the right of the obelus. Let's see it.

POSTED BY: Dee Rosenberg
Posted 17 days ago

I'm not disparaging your research. I'm not arguing with your findings. In fact, I'm willing to stipulate all of that. I guess I shouldn't have buried the lede, so here it is: the original question was stupid.

The original question was how should we evaluate

6 ÷ 2(1 + 2)

All of your research on order of operations is of no value to us if we don't know the provenance of the question. It may be a statistical fact that 99.99% of situations expect to the result to be 1. But it's pretty easy to conceive of variations. Mathematica evaluates that expression to 9. It would be perverse to barge into the Mathematica community and complain that Mathematica deviates from the other 99.99% of usage. The users of Mathematica can get along fine with their own convention.

So, for the original question, we're stuck with ignorance of its provenance. My answer to the question is "I don't know". If I had come up with that expression for some reason and wanted to communicate it to an audience, I personally would add parentheses first to disambiguate it. I wouldn't just assume that my audience shared my preference for order of operations or, perhaps of more relevance, that they would remember it correctly in the moment.

You could say that, given your research, the statistically most likely answer is 1. You could make a contingent statement: "assuming convention so-and-so, the answer is 1". What you can't say is that there are no other valid interpretations whatsoever (it seems that you are indeed saying that, so forgive me if that's not what you're saying).

There is no context-free method for determining a correct answer to the original question. You can't insist on retro-fitting your interpretation, no matter how statistically valid, onto the utterance without a method of validation.

I submit for your consideration this Dijkstra memo: https://www.cs.utexas.edu/~EWD/transcriptions/EWD13xx/EWD1300.html

Things to notice: Even though he's documenting his convention he recognizes the potential for ambiguity; he explains his personal conventions as a favor to his readers rather than arguing for some universal purity; he acknowledges limitations; he allows for deviations--clarity trumps consistency; he argues that optimization at the system ("macro") level is more important than optimization at the local ("micro") level; he completely recognizes that each piece of notation depends upon context (e.g. juxtaposition). Personally, I think this is the kind of teaching we should be doing rather than trying to enforce adherence to any one particular convention any type of notation.

POSTED BY: Updating Name
Posted 15 days ago

No, one does not have to know the provenance of a mathematical expression in order to calculate its value. What one does have to know is the acknowledged understanding of the methods to solve various types of expressions.

Here's the bottom-line issue:

A fraction bar (vinculum) is a grouping symbol.

Fraction=Division (and therefore, Division=Fraction)

from Third Space Learning math tutoring website: https://thirdspacelearning.com/us/math-resources/topic-guides/number-and-quantity/fractions-as-division/

"Interpret Fractions as Division"

"Students will first learn about interpreting fractions as division as part of number and operations–fractions in 5th grade."

What is interpreting fractions as division?

Interpreting fractions as division is when you understand that a fraction represents a division operation between its numerator and denominator. In other words, when you have a fraction

a


b ​
you can interpret it as "a divided by b" or "a÷b."

~ ~ ~ ~

In other words...

Vinculum=Obelus (and therefore, Obelus=Vinculum)

And since the obelus (division sign) & solidus (slash) are interchangeable...

Vinculum=Obelus=Solidus

The fraction bar (vinculum) is a grouping symbol. Therefore, since all of those division symbols are synonymous & interchangeable with one another, the obelus (division sign) & solidus (slash) are also grouping symbols.

2a

---- = 1

2a

...which according to 5th grade math, can also be written as...

2a/2a

or as...

2a÷2a

That tells the reader of the division expression that, given that "a" does not equal zero, 2a divided by 2a always has a quotient of 1, regardless of which division notation used.

POSTED BY: Dee Rosenberg

Regarding syntax, by “provenance” I would take as meaning “intent of problem poser”. For example, 2a+b divided by 2a+b will equal 1 (extending slightly a recurring example). But that does not determine the result of evaluating the expression ‘2a+b/2a+b’. For that one requires an agreed-upon precedence and (possibly) association laws. More below.

Most of this is not relevant to later pedagogy, by the way. The obelus kind of disappears by the time the students hit calculus.

Back to the example above. I entered it on a bunch of online calculators, using slash or obelus, whichever was supported. From these I got four different results, which I will show with unambiguous grouping.

(2x+y)/(2x+y)

2x+(y/2)+y

2x+(y/(2x+y))

2x+(y/(2x))+y

I only saw that last on one calculator. Also I will note that most that give the third and some that give the first reformat the input in a way that makes obvious the interpretation.

I do not claim any to be wrong. It’s all in the precedence convention being used, not the underlying math.

POSTED BY: Daniel Lichtblau
Posted 15 days ago

Yes, exactly. Thank you.

POSTED BY: Eric Rimbey
Posted 15 days ago

Since I have a moment, I'll just belabor the point. If I were an engineer, and any of these arithmetic expressions under discussion showed up in the documents that I must work from, and if the consequence of getting it wrong was loss of life or millions of dollars, should I just push forward with certainty knowing that there is only one valid interpretation of the expression? Personally, I would not. I'd ask some clarifying questions. I would furthermore expect that in life-critical domains the convention would be to not rely on conventions for order of operations. The goal is not to be able to defend one's computation; the goal is to communicate effectively.

POSTED BY: Eric Rimbey
Posted 14 days ago

You ask:

"...should I just push forward with certainty knowing that there is only one valid interpretation of the expression?"

There is only one valid interpretation of the expression 2a÷2a (given that "a" does not equal zero), with the understanding that Division=Fraction (and vice versa) & that "2a" is a monomial, which is defined as one term (even though it consists of a numerical coefficient & a variable) with a single value which is the product of its factors. That definition & usage (via examples of monomial terms, such as "2x," 4abc," & "5n^3) is confirmed in any Basic Algebra textbook, teaching website, or online instructional video.

Here are a few teaching websites which reinforce that point:

from Teaching Better Lesson. com Common Core

https://teaching.betterlesson.com/browse/common_core/standard/272/ccss-math-content-5-nf-b-3-interpret-a-fraction-as-division-of-the-numerator-by-the-denominator-a-b-a-b-solve-word-problems-invo?from=standard_level1

"Interpret a fraction as division of the numerator by the denominator (a/b=a÷b)."

~ ~ ~ ~ ~ ~ ~

Australian Association of Mathematics Teachers:

https://topdrawer.aamt.edu.au/Fractions/Big-ideas/Fractions-as-division

"Fractions as Division"

"Anyone who has studied secondary school mathematics would probably be comfortable with the convention of 'a over b' meaning 'a divided by b'."

~ ~ ~ ~ ~ ~ ~

from Algebra Class .com:

https://www.algebra-class.com/dividing-monomials.html

"Dividing Monomials"

"Remember: A division bar and fraction bar are synonymous!"

~ ~ ~ ~ ~ ~

from Slyavula Technology Powered Learning: 

https://www.siyavula.com/read/za/mathematics/grade-8/algebraic-expressions-part-2/08-algebraic-expressions-part-2-02

Grade 8

Algebraic Expressions  
"WORKED EXAMPLE 8.2

DIVIDING ALGEBRAIC MONOMIALS  
Simplify the following expression:   24t^7 ÷ 4t^5   SOLUTION:  
Step 1: Rewrite the division as a fraction  
This question is written with a division symbol (÷), but this is the same as writing it as a fraction.  
24t^7 ÷ 4t^5 =  

24t^7


4t^5  

...= 6t^2  "

~ ~ ~ ~ ~ ~ ~

from Greene math .com:

<a href="https://www.greenemath.com/Algebra1/33/DividingPolynomialsbyMonomialsLesson.html "Dividing">https://www.greenemath.com/Algebra1/33/DividingPolynomialsbyMonomialsLesson.html "Dividing a polynomial by a monomial

" " * Set up the division problem as a fraction" 

"Example 1

Find each quotient. 4x^4 + 2x^3 + 32x^3 ÷ 8^2

Step 1) Let's set up the division problem as a fraction: 

4x^4 + 2x^3 + 32x^3

----------------------------- =

8^2  "

The same procedure is also shown for Examples 2 & 3.

~ ~ ~ ~ ~ ~ ~

Please note that young math students are being expressly instructed to "Rewrite as a fraction," when presented with a linear division expression originally written with an obelus. If you want more examples of online tutoring sites which teach this methodology, I will be happy to provide them to you.

Can you please show any textbooks, teaching websites or instructional videos (from verifiable teaching sources) which demonstrate what you & others are claiming to be the case -- that the numerical coefficient of a monomial such as "2a" can be detached & used in a separate division operation from the rest of the term?

POSTED BY: Dee Rosenberg
Posted 14 days ago

You said:

"I entered it on a bunch of online calculators, using slash or obelus, whichever was supported. From these I got four different results, which I will show with unambiguous grouping.

(2x+y)/(2x+y)

2x+(y/2)+y

2x+(y/(2x+y))

2x+(y/(2x))+y

I only saw that last on one calculator. Also I will note that most that give the third and some that give the first reformat the input in a way that makes obvious the interpretation."

You have just proven the point I was making all along -- that a number of calculator programs were not written in accordance with what has been taught in 5th grade & reiterated again in Basic Algebra class, which is that Fraction=Division & therefore Division=Fraction, along with the definition of what a "term" is (specifically, a monomial) & how to divide by a monomial.

The programming of a given calculator is only as good as the programmer's grasp of the underlying concepts. Some programmers obviously have a lack of understanding of the aforementioned concepts that Fraction=Division (and vice versa) & what a "term" is -- specifically a monomial, which, by definition, has a numerical coefficient which is inseparable from its factor(s).

Because some programmers had a poor understanding of those concepts, users of a given calculator may be instructed to place parentheses around each term in an expression, so that the calculator program registers the operations correctly, but that does NOT mean that it is strictly required in all cases when performing the division by a monomial, manually! See Texas Instruments:

“Implied Multiplication Versus Explicit Multiplication on TI Graphing Calculators”

https://education.ti.com/en/customer-support/knowledge-base/ti-83-84-plus-family/product-usage/11773#:~:text=Implied%20multiplication%20has%20a%20higher,as%20they%20would%20be%20written

“Does implied multiplication and explicit multiplication have the same precedence on TI graphing calculators?

Implied multiplication has a higher priority than explicit multiplication to allow users to enter expressions, in the same manner as they would be written [manually]. For example, the TI-80, TI-81, TI-82, and TI-85 evaluate 1/2X as 1/(2X), while other products may evaluate the same expression as 1/2X from left to right. Without this feature, it would be necessary to group 2X in parentheses, something that is typically not done when writing the expression on paper."

Here is an online calculator which gives different answers to the exact same division proposition:

from Mathway online calculator:

https://www.mathway.com/Algebra

Whether the input is 2a/2a or 2a÷2a, the answer comes out as 1, shown as the top-and-bottom fraction 2a over 2a in both cases, even though the original input was in linear form using a slash or obelus.

However, when the input is 2(1+2)÷2(1+2), the answer shown is 9.

In the expression 2a÷2a when a=(1+2) or a=3, would you please explain how is that possible?

~ ~ ~ ~ ~ ~ ~

I previously supplied you with a myriad of solved examples from a variety of math teaching websites, instructional videos & textbooks from all over the world, which instruct Basic Algebra students to "Rewrite as a fraction," when presented with a division expression using an obelus, showing the monomial divisor/denominator as the entire term -- not just dividing by its coefficient.

What is taught in high school Algebra is the foundation for more complex math later on. Without understanding basic concepts such as what a "term" is & how to divide by a monomial, people will not know how to solve more complex expressions which they encounter down the road, as they advance.

Can you please link to some math textbooks or teaching websites which specifically instruct students to detach the numerical coefficient from a monomial such as "2a" or "4xyz" & use it in a separate division operation from the rest of the single term, showing several solved examples demonstrating that specific method of calculating "Division by a Monomial." to support that what you are saying is a common practice among educators & the global math community?

POSTED BY: Dee Rosenberg

Educators and the global math community are largely different fish. I make no claims about what algebra teachers do or should do.

The math community at large generally uses unambiguous notation. For computation, well, see below.

Claiming the programmers don't know the math is, well, kinda silly. Invariably they know the math and they know at least rudiments of infix expression parsing. If the HS algebra teachers are unfamiliar with these notions, that's probably fine, so long as they do not give students the wrong ideas about how calculators work.

You did not state, but I'm guessing you advocate that 2x+y/2x+y is grouped as 2x+(y/(2x))+y with extra parens added since some calculators have division with lower precedence than addition. It's fine for some purposes. It's not what I would expect of want from a computer language though. Here I'd expect exactly what the Wolfram Language (WL) produces:

In[43]:= 2 x + y/2 x + y

Out[43]= 2 x + y + (x y)/2

I suspect this is what most professionals in math, computer science, stats or the so-called hard sciences would expect (I'm fairly certain as regards math and CS). I show links for a number of computer languages below. Pretty nearly all indicate precedence that will behave just like the WL example above.

precedence in Ada

Microsoft precedence in BASIC

precedence in C

precedence in C++

Precedence in Cobol

precedence in Fortran

precedence in Java

precedence in Matlab

Precedence in Pascal

Precedence in Perl

Precedence in Python

Precedence in R

Precedence in Wolfram Language (No, we did not all sleep through that day in algebra)

Here is a table noting several languages

This one appears to support the precedence you like.

precedence in FreeBASIC

Overall it appears that the programming world is using a convention other than the one is taught in HS algebra. The students seem to manage. Their teachers, I'm not so sure. If you want to rail on about this you are welcome to do so. But the programming language standards won't change and the committees that establish such standards won't be interested.

POSTED BY: Daniel Lichtblau
Posted 14 days ago

Daniel, do you suppose we're talking to an AI?

POSTED BY: Eric Rimbey

Eric, I was thinking the same thing. We're maybe being... botted. (Is that a word? I should be.) It seems the response pattern never changes, the points that get ignored never change, and those that recur rise from the dead faster than zombies.

POSTED BY: Daniel Lichtblau
Posted 14 days ago

The only thing being "ignored" by you & others is:

Vinculum (fraction bar)=Slash (solidus)=Obelus (division sign)

That's because they all represent "divided by."

According to every math book ever written, the vinculum (fraction bar) is a grouping symbol. And since the vinculum, solidus & obelus are all synonymous with one another & thus interchangeable, all division symbols are grouping symbols.

If you believe that that's wrong, prove it with links to reputable teaching sites which expressly state that the obelus is somehow different to the solidus & vinculum, even though they all mean "divided by."

POSTED BY: Dee Rosenberg

Essentially every programming language, whether it uses a slash or other symbol to denote infix division, parses as I stated. This has nothing to do with how the math is taught, and everything to do with the programming language world having converged to a (mostly) common standard. Students who expect different outcomes usually learn to adjust as well, especially CS majors. It's sort of a necessity at that level.

POSTED BY: Daniel Lichtblau
Posted 14 days ago

When it comes to conducting division manually (not entering the expression into a calculator), everyone with more than a 5th grade education would write the fraction twenty-four twelfths as the top-and-bottom fraction of 24 over 12 (using a fraction bar to separate the two terms).

And if someone was asked to write that same fraction of twenty-four twelfths on a single line, the person would write that as 24/12.

Everyone with more than a 5th grade education understands that the quotient in both cases is 2.

Isn't is true that 24/12 can also be written as 24÷12 because both the slash & the division sign mean "divided by"?

POSTED BY: Dee Rosenberg

"Isn't is true that 24/12 can also be written as 24÷12 because both the slash & the division sign mean "divided by"?"

We've strayed way out of scope for this forum. The answer is yes but that has nothing to do with parsing arithmetic expressions which in turn only tangentially intersects Wolfram Community.

POSTED BY: Daniel Lichtblau
Posted 14 days ago

You say:

" 'Isn't is true that 24/12 can also be written as 24÷12 because both the slash & the division sign mean "divided by"?'

We've strayed way out of scope for this forum. The answer is yes but that has nothing to do with parsing arithmetic expressions which in turn only tangentially intersects Wolfram Community."

The title of this discussion thread here on the Wolfram Alpha forum is:

"Math breaking Facebook: 6 ÷ 2(1+2) = ?"

This subject is all about how the expression should be parsed.

6÷2(1+2) is 6 divided by 2(1+2), which is the precisely the same as 2a÷ 2a when a=(1+2).

You just acknowledged that twenty-four twelfths can be correctly written as the top-and-bottom fraction of 24 over 12 (with a fraction bar separating the two terms), or as 24/12, and that 24/12 is the same as 24÷12 -- all with a quotient of 2, since they all mean 24 divided by 12.

Using the same logic, then, it follows that the monomial division of 2a÷2a can be correctly written as 2a over 2a (with a fraction bar separating the two terms). When the variable "a" does not equal zero, 2a divided by itself has a quotient of 1, regardless of which division notation was used to write it.

The monomial division expression 2a÷2a is also correctly written as the fraction...

2a


2a

When a=(1+2), the expression becomes...

2a=2(1+2)=6

6/2(1=2)

6/6=1

There is nothing confusing or ambiguous there, once one understands that the division sign, the slash & the fraction bar are all one and the same, and that a monomial is one term with a singular value which is the product of its factors (i.e. the coefficient cannot be lopped off & used in a separate division operation, without its factors).

POSTED BY: Dee Rosenberg
Posted 14 days ago

I guess we're all just having fun now. What the heck...

Education forms the foundation for more complex mathematics down the road. What gets taught in 5th grade & reiterated in Basic Algebra is used later on, as calculations become more complex.

This sounds fine, but the fact is that almost no one above that 5th grade level you're talking about spends two seconds thinking about order of operations. In my experience in higher education and in a math-intensive profession everyone deals with computations in ways such that there's simply no need to explicitly worry about getting order of operations "right". And even before 5th grade, while I do remember order of operations being taught, I don't remember it being that big of a deal. We weren't given (that I remember) trick questions that depended on a specific convention for order of operations.

According to every math book ever written, the vinculum (fraction bar) is a grouping symbol. And since the vinculum, solidus & obelus are all synonymous with one another & thus interchangeable, all division symbols are grouping symbols.

That's not a sound logical argument. "Company" and "business" are synonymous, so it's perfectly acceptable for me to invite business over for dinner. A red traffic light and a stop sign are synonymous, so you should wait at a four way stop for the stop sign to turn green.

It appears that it's not a "collective decision," because some calculator programs do get it right!

This is just cherry picking. Whenever it's done the way you prefer, it's "right". Whenever it's not, it's "wrong". Classic.

When a=(1+2), then 2a=6. So 2(1+2) divided by 2(1+2) has a quotient of 1

You've repeated this many times. What if the expression had been 7 ÷ 2(1 + 2)? Do we interpret that as 2 x 3.5 / 2 x 3, or as 2.333 x 3 / 2 x 3? I realize that it doesn't affect the answer, but what's the point in doing this transformation since it relies on coincidence?

Can you please show ... that the numerical coefficient of a monomial such as "2a" can be detached & used in a separate division operation from the rest of the term?

This is another point you keep repeating, but what has that got to do with anything? The convention for arithmetic on explicit numbers is different from the convention for algebra and polynomials. Specifically, I'm not aware of any context where one writes "3 6" or "36" to mean "3 x 6". It's the very fact that we can readily distinguish letters from digits that we can get away with "3a" meaning "3 x a". The original question had no variables in it, so your argument here is totally irrelevant.

Maybe I'll reciprocate your demands for proof with my own. Prove to us that you're neither a bot nor a troll.

POSTED BY: Eric Rimbey
Posted 14 days ago

Education forms the foundation for more complex mathematics down the road. What gets taught in 5th grade & reiterated in Basic Algebra is used later on, as calculations become more complex. Failure by a programmer to understand that Fraction=Division (and therefore, Division=Fraction), what a monomial is (i.e. what it consists of & its singular value) & how to conduct division of a monomial means that the programming (and/or its language) will be faulty.

"Garbage In, Garbage Out!"

Pointing to computer programs as some kind of "proof" of how to conduct division by a monomial proves only that the creator of the programming language and/or the writer of the calculator program did not have a good grasp of the basic concepts necessary to correctly carry out those calculations.

Some online calculators do get it right, because input of the monomial division is automatically converted to a top-and-bottom fraction.

BYJUS teaching website:

https://byjus.com/dividing-monomials-calculator/

"In Algebra, a polynomial with a single term is known as a monomial. When a monomial is divided by a monomial, first divide the coefficients of the variable and then divide the variable when the variables are present in both the numerator and denominator. For example, assume two monomials, 50 xy and 5y. Now the monomial 50xy is divided by 5y, we will get

= 50xy/5y

= 10x

Thus, the quotient value obtained is 10x, which is the result of the division process."

~ ~ ~ ~ ~ ~

from Snapxam .com:

https://www.snapxam.com/calculators/polynomial-long-division-calculator

Input:

2(1+2)÷2(1+2)

Answer:

1

~ ~ ~ ~ ~ ~

Here's an online calculator that gives two different answers, depending on which division symbol is used:

https://www.symbolab.com/solver/polynomial-long-division-calculator

When input with an obelus, this calculator shows a result of 2a÷2a=1.

In that expression, a=(1+2)

When input with a slash as 2(1+2)/2(1+2), the expression is solved as the top-and-bottom fraction of 2(1+2) over 2(1+2), thus rendering a quotient of 1.

...but when inputting the same division expression with an obelus as 2(1+2)÷2(1+2), the answer comes out to 9.

~ ~ ~ ~ ~ ~ ~

Since every math textbook on the planet affirmatively specifies that the slash & the obelus are synonymous & are thus interchangeable (as well as every algebra textbook showing how to plug in the value of a variable), I'd appreciate it if you would please explain the difference in the method of calculation between using the slash vs. using the obelus in the expression 2(1+2) divided by 2(1+2), or 2a divided by 2a when a=(1+2).

I look forward to that complete contradiction being explained as something other than the programmer's lack of understanding of the basic concepts behind the acknowledged methodology, used worldwide, to execute division by a monomial.

POSTED BY: Dee Rosenberg

"I look forward to that complete contradiction being explained as something other than the programmer's lack of understanding of the basic concepts behind the acknowledged methodology, used worldwide, to execute division by a monomial."

The language committees know what they're doing; that has nothing to do with any particular programmer's understanding. The programmers who write the language compilers know how to parse to meet the design specs (I can say this with assurance, having been one myself prior to math grad school).

If you don't like the outcome of this seemingly collective decision then you'll need to plan accordingly (read: only use calculators that use the precedence you like, and avoid all serious programming languages). I can pretty much guarantee that the former students who go on to higher math will have sorted this out for themselves, and will never look back. Should you encounter one of yours you might wish to ask about this. Especially if said former student has experience as a programmer.

POSTED BY: Daniel Lichtblau
Posted 14 days ago

You say:

"The language committees know what they're doing; that has nothing to do with any particular programmer's understanding. The programmers who write the language compilers know how to parse to meet the design specs (I can say this with assurance, having been one myself prior to math grad school)."

It appears that it's not a "collective decision," because some calculator programs do get it right!

However, some language writers & some programmers did not absorb the concept in every math textbook on the planet, that...

Vinculum (fraction bar)=Solidus (slash)=Obelus (division sign)

...and also failed to fully comprehend how to plug in the value of a variable into a monomial such as "2a."

Given that "a" does not equal zero, the monomial "2a" divided by itself will always equal 1, regardless of the division notation used.

When a=(1+2), then 2a=6.

So 2(1+2) divided by 2(1+2) has a quotient of 1 -- because 6 divided by 6 equals 1, no matter whether it's written as a top-and-bottom fraction, with a slash, or with a division sign. All division symbols are synonymous with one another & are thus interchangeable -- they all mean "divided by" & they all function as a grouping symbol.

POSTED BY: Dee Rosenberg

"Some [...] programmers"? No. Pretty much all of us, amounting to tens (hundreds?) of thousands scattered across all inhabited parts of the globe. You can (and do) rail about his. Given your apparent confusion it might be wiser to pause and ask why this particular standard has come into use.

I have yet to see the point about claims ad infinitum of this notation equals that so that equals this notation equals the other, to how computer languages handle infix expression parsing. Expressions encountered might be the same but the parsing/grouping claimed for algebra class is different from what's done by language compilers and interpreters. If that's a fundamental obstacle for you, avoid the programming languages.

POSTED BY: Daniel Lichtblau
Posted 14 days ago

In answer to your statement...

" Expressions encountered might be the same but the parsing/grouping claimed for algebra class is different from what's done by language compilers and interpreters. If that's a fundamental obstacle for you, avoid the programming languages."

Because some computer language writers & calculator programmers apparently only have a limited grasp of the underlying concepts of monomial division (and that all division symbols are synonymous with one another & thus interchangeable), when entering an expression into a calculator, it is best to encase a monomial divisor (denominator) in parentheses, so the machine will not misconstrue the expression's meaning.

With that said, however, that does not change the meaning & value of the original monomial expression, regardless of which division symbol was used.

POSTED BY: Dee Rosenberg
Posted 14 days ago

Because some computer language writers & calculator programmers apparently only have a limited grasp of the underlying concepts of monomial division

Okay, so you're not only saying that there is only one acceptable convention for order of operations for use in general conversation, but you're adding that no community is free to choose for its own use within its own domain a different convention that they believe works better for them in their domain. The only possible way that a community could adopt for its own use a different convention is if that community is ignorant. Wow. Just wow. Would love to see your reaction to non-euclidean geometry.

POSTED BY: Eric Rimbey
Posted 14 days ago

You say:

"Okay, so you're not only saying that there is only one acceptable convention for order of operations for use in general conversation, but you're adding that no community is free to choose for its own use within its own domain a different convention that they believe works better for them in their domain."

What I'm saying is that this particular expression of 6 ÷ 2(1+2) is a simple monomial division expression.(i.e. division by a monomial). A monomial has a specific definition, which I have linked to here, from various websites. I encourage you to go look it up yourself if you don't believe me.

I have also provided links to numerous websites demonstrating the way that division by a monomial is being taught today -- which is the same way I learned it decades ago. A monomial such as "2a" is one entity with a single value which is the PRODUCT of its factors. By all means, go look that up too, if you have any doubts about my interpretation of what a monomial consists of & how to divide by a monomial such as "2a."

You seem stuck on the idea that computer languages & some calculators force users to encase a monomial within parentheses, to insure that the program interprets the monomial correctly (i.e. as a single combined entity, which holds the value of the product of a coefficient & its factor or factors). A computer program is only as good as its writer's understanding of the propositions involved.

A programming language and/or calculator program has flaws in it, if it gives different answers to the same division proposition, depending on what division symbol is used.

Example from Wolfram Alpha's calculator program:

https://www.wolframalpha.com/input?i=divide+2a+by+2a

Natural language input:

2a divided by 2a = a^2

Natural language input:

Divide 2a by 2a

2a

_____ = 1

2a

Same division proposition -- different answers. Please explain the discrepancy..

POSTED BY: Dee Rosenberg

No real discrepancy there. The natural language interpreter is making a guess as to intent. It misses your intent in the first instance. Possibly that's a shortcoming in the guessing semantics, or maybe it was intended based on the sentence structure. My guess is the former; you could send feedback about it if you like.

POSTED BY: Daniel Lichtblau
Posted 13 days ago

I have sent feedback about the discrepancy in the Natural Language input that gives two different answers. What I got was, "We're looking into it." It was obviously never addressed.

The "shortcoming" is that there is a flaw in the program, since there should be no difference in understanding the identical division proposition of dividing 2a by itself, no matter what phraseology is used.

On Wolfram Alpha's calculator's "Math Input," the slash & obelus are not included in their symbols array (on a purple background underneath the entry bar). The only division symbol provided is a "blank" fraction set-up, on the far left of those operations choices. When I used that fraction symbol to conduct the division, I typed in 6 as the numerator & 2(1+2) as the denominator & got "one" as the result. The only time Wolfram Alpha gives a different result is if you input a division symbol that is not provided by their own calculator system. That's another flaw in the program, since all division symbols are synonymous with one another & are therefore interchangeable.

Here's teaching site BYJUS's "Dividing Monomials Calculator," which provides input as numerator & denominator:

https://byjus.com/dividing-monomials-calculator/

...and below that, an explanation & example...

"What is Meant by Dividing Monomials?"

"In Algebra, a polynomial with a single term is known as a monomial. When a monomial is divided by a monomial, first divide the coefficients of the variable and then divide the variable when the variables are present in both the numerator and denominator. For example, assume two monomials, 50 xy and 5y. Now the monomial 50xy is divided by 5y, we will get

= 50xy/5y

= 10x

Thus, the quotient value obtained is 10x, which is the result of the division process."

Note that the monomial division example is written with a slash (the same as the obelus -- meaning "divided by") & no parentheses around "5y," which is regarded as the full denominator in their explanatory example. The solution was not 50xy divided by the coefficient 5 & then multiply that quotient by "xy." The correct solution was shown as the numerator 50xy divided by the denominator 5y, which equals 10x.

Using that method demonstrated for students to learn how to divide monomials, given that "a" does not equal zero...

2a/2a=

2a


2a

...which equals 1.

When a=(1+2), 2a/2a is...

2(1+2) / 2(1+2)

2(1+2)= 6

6/2(1+2)

6/6 = 1

Every math textbook & teaching website supports that parsing of the expression 6/2(1+2) because that is the acknowledged method to divide by a monomial -- in this case, "2a" when a=(1+2) & "6" can also be factored out as 2(1+2) or "2a" when a=(1+2).

POSTED BY: Dee Rosenberg

My guess is that the problem is in the natural language processing part, and that it produces "raw" computational input that is not properly parenthesized. Running the command below in WL seems to bear out this supposition.

In[204]:= WolframAlpha["2a divided by 2a", {{"Input", 1}, "Plaintext"}]

Out[204]= "2\[Times]a/2 a"

I suspect it will be fixed, though I cannot guarantee that.

POSTED BY: Daniel Lichtblau
Posted 14 days ago

For my edification, can you help me identify the monomials in the following expression?

x^2 + 7 + 3x^2 + x + 16 + 5x

And just for clarity, in the original

6 ÷ 2(1+3)

what are the monomials?

For all of these monomials you've found, I'd also like to know their degree.

[And just to save some time... Why can't I say that in the first case the monomials are 4x^2, 6x, and 23? In the second, why can't I say that there is only one monomial of degree 0? The only reason I ask for degree, is that in the second case what justifies extracting out sub-monomials from a single monomial for no apparent computational reason? Why can't I say that 4x^2 is 8x^2 ÷ 2x * (2x - x)? And having said that, why can't I say that "" and juxtaposition are synonyms for "multiply" and write it as 8x^2 ÷ 2x(2x - x)? Thus, 4x^2 can be rewritten as 4. Or, since "" and juxtaposition are synonyms for "multiply", maybe it's 8x^2 ÷ 2 * x * (2x - x) and therefore 4x^2 is equivalent to 4x^4.]

POSTED BY: Eric Rimbey

Eric, for your non-Euclidean geometry let's assume curvature does not change sign. If curvature is positive then it's easy to just go around in circles. If it's negative then we wander off to infinity.

As it is, we've sorta circled the drain (glug). So I'm guessing this thread lives in a positive-curvature universe. One where algebra teachers are to be feared, apparently. (Presumably a side effect of the curvature. Who knew?)

POSTED BY: Daniel Lichtblau
Posted 14 days ago

Ah, that's the explanation! LOL.

POSTED BY: Eric Rimbey
Posted 13 days ago

Responding to your "circling the drain" comment, you're certainly entitled to your opinion, but the fact remains that this discussion thread's subject is about how to parse the expression 6 ÷ 2(1+2).

Here's something pertinent to that subject from the Texas Instruments site:

“Implied Multiplication Versus Explicit Multiplication on TI Graphing Calculators”

https://education.ti.com/en/customer-support/knowledge-base/ti-83-84-plus-family/product-usage/11773#:~:text=Implied%20multiplication%20has%20a%20higher,as%20they%20would%20be%20written

“Does implied multiplication and explicit multiplication have the same precedence on TI graphing calculators?

Implied multiplication has a higher priority than explicit multiplication to allow users to enter expressions, in the same manner as they would be written. ...Without this feature, it would be necessary to group 2X in parentheses, something that is typically not done when writing the expression on paper."

Note where it says:

"Implied multiplication has a higher priority than explicit multiplication"

...and where it says that putting the term 2X in parentheses is "typically not done when writing the expression on paper."

In other words, TI is saying that when solving an expression on paper (manually), parentheses are not necessary because it is understood that "2X' is one term with a single value, which is the product of its factors.

~ ~ ~ ~ ~ ~

Here is an example of how students are instructed to solve an algebraic division expression involving monomials:

from Slyavula Technology Powered Learning:

https://www.siyavula.com/read/za/mathematics/grade-8/algebraic-expressions-part-2/08-algebraic-expressions-part-2-02

Grade 8

Algebraic Expressions

"WORKED EXAMPLE 8.2

DIVIDING ALGEBRAIC MONOMIALS

Simplify the following expression:

24t^7 ÷ 4t^5

SOLUTION:
Step 1: Rewrite the division as a fraction

This question is written with a division symbol (÷), but this is the same as writing it as a fraction.

24t^7 ÷ 4t^5 =

24t^7

4t^5

...= 6t^2 "

Note that the original expression of 24t^7 ÷ 4t^5 contains no parentheses around the monomial divisor of 4t^5 & yet is interpreted as the entire denominator of the top-and-bottom fraction -- not just using the numerical coefficient of "4" separately in the division, before multiplying by its factor of "t^5."

~ ~ ~ ~ ~ ~ ~

If you want to see further examples of how students are shown to manually calculate algebraic division expressions involving division by a monomial, I will be happy to provide them.

The bottom line is how math teachers all over the world understand the agreed-upon rules for dividing by a monomial -- that it is a fraction, with the entire term to the right of the obelus (or slash) being the denominator.

Probably back in the 1970's or 1980's, a small handful of computer programmers wrote the first calculator programs. And since that time, programmers probably used many elements from those early versions as a basic template for newer calculator programs. It stands to reason, then, that the original programs had flaws in them that were copied & recopied, so there continue to be flaws in calculator programs now. See Wolfram Alpha's calculator:

Wolfram Alpha's Natural Language input as "2a divided by 2a" yields an answer of "a^2," while input of "Divide 2a by 2a" yields an answer of 1.

https://www.wolframalpha.com/input?i=2a+divided+by+2a

https://www.wolframalpha.com/input?i=divide+2a+by+2a

Same monomial division proposition -- two different answers. That's a programming flaw.

~ ~ ~ ~ ~ ~

6 ÷ 2(1+2) is division of 2a by 2a when a=(1+2):

Wolfram Alpha gives two different answers to that -- which is right?

POSTED BY: Dee Rosenberg
Posted 13 days ago

Note where it says: "Implied multiplication has a higher priority than explicit multiplication"

Note also where it says "...on TI graphing calculators"

Also, it's curious that you are willing to admit that the synonymous syntax of implicit and explicit multiplication can have different precedence, but that the synonymous syntax of ÷ and / must have the same precedence.

Not that it matters, because I'm still pretty sure you're a bot.

POSTED BY: Eric Rimbey
Posted 13 days ago

No, I'm not a bot.

As for your comment...

"Also, it's curious that you are willing to admit that the synonymous syntax of implicit and explicit multiplication can have different precedence, but that the synonymous syntax of ÷ and / must have the same precedence."

I'm not saying anything -- I'm just citing what is taught in schools & tutoring websites all over the world (and has been taught the same way for decades).

What is taught is that a term such as "2a" is a monomial -- one term with a single value which is the product of its factors. I encourage you to look up "Division By A Monomial" on any teaching website & see what it says. From what I have seen, they all give at least one example of a monomial consisting of a coefficient & a variable factor or factors. I have yet to see any teaching website or textbook which tells students to break off the coefficient of a monomial such as "2a" & use that in a separate division from its factor(s). Can you please find an example on a teaching website of dividing by a monomial which instructs students that your claim of detaching the coefficient from its factor(s) & using it in another operation is the correct method to parse a monomial division expression such as 2a/2a (or written with an obelus as 2a÷2a)?

POSTED BY: Dee Rosenberg

"but the fact remains that this discussion thread's subject is about how to parse the expression 6 ÷ 2(1+2)."

The thread opened a discussion on the various ways that expression might be parsed. We probably should have locked the thread years ago. I may recommend we do that now, after removing all the posts from the past couple of weeks-- they only serve as a noisy distraction.

"Here's something pertinent to that subject from the Texas Instruments site:"

Note as ever that TI produces calculators, not computer languages. They have their own requirements and preferred parsing, and for good reason. Indeed, they made a clear choice to allow two different precedences, so as to meet expectations of two different user communities (education and scientific uses). The languages all went in a different direction in this regard. Other calculators make various choices and I will guess they each base their decision on what their user base is likely to expect and/or prefer. As has been pointed out, these choices are neither right nor wrong, they are simply different conventions for handling arithmetic expressions. Not all users share the wants of algebra teachers.

"Probably back in the 1970's or 1980's, a small handful of computer programmers wrote the first calculator programs."

The language standards for Algol, Cobol and Fortran all date to the late 50's-early 60's. By the 80's these conventions were the norm if not universal (certainly they were in every language I used or implemented during the span 81-85, when I worked on compiler construction). I am not aware of anyone back then thinking "we need to adhere to this rule because it's what every other language has" although by now this might well be the case. I suspect certain consistencies in expression handling were more the desired goal; see next paragraph.

I do not know offhand why the particular set in current use was preferred. Taking a guess, it was so that (i) addition and subtraction could have equal precedence, (ii) likewise multiplication and division could have equal precedence, and (iii) both could associate from the left. To give an idea of what I mean, transporting your insistent (and frankly incessant) "never break up a monomial" rule to addition operators, a-b+c would be parsed as a-(b+c) just as you have a/b*c parsed as a/(b*c). That is to say, when the first infix operator is subtract respectively divide and the second is plus respectively times, then associate from the right instead of the left. This makes for troublesome parsing when one is confronted with a chain of such operators. Now it could have been resolved in the way you seem to think absolutely necessary, by simply giving divide operators lower precedence than multiplication. Again, for whatever reasons, this was not the path taken.

You have spent a lot of time lecturing about parsing absolute requirements to people who have done that for a living, and lecturing on math to people who do that for a living (and take note: none have lectured you on teaching algebra). And you've displayed essentially no understanding of the former topic, and none of the latter beyond algebra 1. And no clear indication that you can distinguish between mathematical conventions and mathematical concepts. Some of this is possibly fine for a math education forum, but that's not what this is. As I noted at the top, this just makes for noise. You can make more of it if you really like, but be aware that, absent some new and sensible direction. the most likely effect of repetition will be to have these notes go away.

POSTED BY: Daniel Lichtblau
Posted 6 years ago

6÷2(2+1), the answer is actually 9. For the people who used this principle x/2y, 2y is obviously together in a group. Polynomials is a simpliest form of an equation the doesn't need parentheses. for example, if the problem is written as 6÷[2(2+1)], in algebraic expression it can easily written as 6÷2y or 6/2y with y=2+1. For the people who said that we should use the distribution, using distribution in 2(2+1) is actually a multiplication method which means you break the rule of PEMDAS that Multiplication and Division are tied in priority which who comes first from left to right should be solve first. 1st step: 6÷2(2+1), Inside the parentheses, 6÷2(3), the parentheses sign is indicate a multiplication, eq. of multiplication signs [x, *, ()] 2nd Step: 6÷2(3), since () is indicate a multiplication, you can rewrite the problem as 6÷2x3, since Division comes first, used Left to Right rule, solve 6÷2=3 3(3) or 3x3 or 3*3 3rd Step 3(3)=3x3= ****9****.

POSTED BY: Jetron Batoon
Posted 8 years ago

Some claim the equation is ambiguous, but the notation is common. It is understood that we apply the Distributive Law in the Parentheses step of PEMDAS. 2(1+2) = (2x1) + (2x2) = 6.

The only number you can divide 6 by to arrive at 9 is 2/3.

2(1+2) != 2/3

2(1+2) == 6

The left to right solvers, by replacing implied multiplication with implicit multiplication, are flipping the parenthetical expression to the inverse.

2÷(1+2) == 2/3

Therefore:

6÷2(1+2) != 6÷2*(1+2)

The Desmos online calculator will return the correct answer when using the keypad.

The Casio fx9860GII SD returns the correct answer to the equation as given 6÷2(1+2) and provides the alternate notation if you were expecting a result of 9. Casio fx9860GII SD

POSTED BY: Steven Kritzer

Thank you all!

All things considered would an appropriate answer be "Need more information to solve" since the author gave no context clues to assist?

POSTED BY: Orion Reynolds

Yes, without further hints it is not good notation, you need to know the rules of the game. It is like using parenthesis like

 [3*(2+3]*5)

we don't know how to deal with that without some extra rules...

POSTED BY: Sander Huisman

It all depends on what they call the precedence of the operators. For Mathematica (Wolfram Language) the Divide has a higher precedence than Times. So it will first do divisions then multiplications:

Precedence[Divide]
Precedence[Times]
470
400

But in other cases you also have to look at how it groups:

6/2/3

could be 6/(2/3) or (6/2)/3, giving different answers.

have a look here:

https://reference.wolfram.com/language/tutorial/OperatorInputForms.html

To sum up: the author of that equation is just sloppy; you have to assume something in order to solve it, and depending on the conventions... so therefore always add extra parenthesis to rules out those cases...

POSTED BY: Sander Huisman

and similarly things like a^b^c could be (a^b)^c or a^(b^c), so always add parenthesis when there is no clear answer. You can avoid part of it by always doing multiplication first and then division:

a/b c (to be interpreted as (a/b)*c)

should be written as : c*a/b, so it doesn't matter what the order is...

POSTED BY: Sander Huisman

Thank you for your response Gianluca,

For my own edification, what context clues would there be to solve the equation any other way? Which interpretation makes the most sense in this context? 9 or 1? Would a word problem make this easier to understand as well?

Also I very much appreciate any responses in this thread--All of us have access to the same Wikipedia and websites that have greater detail...however for my end users who are obstinate about unreliable sources I wanted to come to the most credible place.

POSTED BY: Orion Reynolds

Yes it comes down to whether a space in front of parenthesis in an equation has any significance when parsing a formula. Mathematica doesn't care and even inserts a space to make the formula appear nice. Of course in Mathematice as in many other notations, the multiplication sign can be replaced by a space like 4 5=45 obviously leaving out the space there would be the number 45. with parenthesis the space might not be necessary 2(1+2) = 2 (1+2)=2(1+2), I have not seen the interpretation 2(1+2)=(2*(1+2)), but it is all a matter of agreed convention.

In[1]:= 6 / 2 (1 + 2)

Out[1]= 9

When in doubt, the best way to insure clarity one can write out the formula like this:

In[2]:= 6 / 2*(1 + 2)

Out[2]= 9

In[3]:= 6 / (2*(1 + 2))

Out[3]= 1
POSTED BY: Kay Herbert

That is a classic. The problem is that there is no universal agreement on how to parse expressions with a mix of multiplications and divisions, or with more than one division. Does 1/2a mean 1/(2b) or (1/2)a? It is a matter of convention. Mathematica treats it as (1/2)a, but you may find books where it is meant as 1/(2a), perhaps because this way you save typing parentheses. Usually the ambiguity can be decided from the context, as only one interpretation makes sense. I teach my students to avoid expressions such as a/b/c and always write parentheses to make sure they are not misunderstood. There is a Wikipedia article on the "Order of operations". The calculation 6 ÷ 2(1+2) = 6 ÷ 2 + 4 = 7 is a gross mistake in my view.

POSTED BY: Gianluca Gorni

Group Abstract Group Abstract