Group Abstract Group Abstract

Message Boards Message Boards

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

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

Posted 10 years ago
POSTED BY: Orion Reynolds
64 Replies
Posted 1 year ago
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 1 year 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 1 year 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 1 year ago
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 1 year ago
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 1 year ago
POSTED BY: Dee Rosenberg
POSTED BY: Daniel Lichtblau
Posted 1 year ago
POSTED BY: Dee Rosenberg
POSTED BY: Daniel Lichtblau
Posted 1 year 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 1 year 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 1 year 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 1 year 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 1 year ago
POSTED BY: Dee Rosenberg
Posted 1 year ago
POSTED BY: Eric Rimbey
Posted 1 year 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 1 year ago
POSTED BY: Updating Name
Posted 1 year ago
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 1 year ago

Yes, exactly. Thank you.

POSTED BY: Eric Rimbey
Posted 1 year ago
POSTED BY: Eric Rimbey
Posted 1 year ago
POSTED BY: Dee Rosenberg
Posted 1 year ago
POSTED BY: Dee Rosenberg
POSTED BY: Daniel Lichtblau
Posted 1 year 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 1 year 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 1 year 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 1 year ago
POSTED BY: Dee Rosenberg
Posted 1 year ago
POSTED BY: Eric Rimbey
Posted 1 year ago
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 1 year 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 1 year 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 1 year 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 1 year ago
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 1 year ago
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 1 year ago
POSTED BY: Eric Rimbey
POSTED BY: Daniel Lichtblau
Posted 1 year ago

Ah, that's the explanation! LOL.

POSTED BY: Eric Rimbey
Posted 1 year ago
POSTED BY: Dee Rosenberg
Posted 1 year 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 1 year ago
POSTED BY: Dee Rosenberg
POSTED BY: Daniel Lichtblau
Posted 7 years ago
POSTED BY: Jetron Batoon
Posted 9 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
POSTED BY: Orion Reynolds
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