SDNet Brain Trust - enlighten me on 6 / 2 (1+2)

SLAM: debunk creationism, pseudoscience, and superstitions. Discuss logic and morality.

Moderator: Alyrium Denryle

Post Reply
AniThyng
Sith Devotee
Posts: 2760
Joined: 2003-09-08 12:47pm
Location: Took an arrow in the knee.
Contact:

SDNet Brain Trust - enlighten me on 6 / 2 (1+2)

Post by AniThyng »

I'm going to go with 9 because of order of precedence rules and also because C will evaluate it as such.

But it seems opinions differ.

Have at it!
I do know how to spell
AniThyng is merely the name I gave to what became my favourite Baldur's Gate II mage character :P
bilateralrope
Sith Acolyte
Posts: 5938
Joined: 2005-06-25 06:50pm
Location: New Zealand

Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2)

Post by bilateralrope »

6/2 * (1+2)
6/2 * (3)
3*3
9

How do those people favoring incorrect answers try to justify their answers ?
AniThyng
Sith Devotee
Posts: 2760
Joined: 2003-09-08 12:47pm
Location: Took an arrow in the knee.
Contact:

Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2)

Post by AniThyng »

It seems that the most common justification (or at least the only one that comes close to making sense to me) is that they presume that 2( is somehow higher precedence than 2*( so they evaluate it as

6/2(1+2)
6/2(3)
6/6
1

or

given b = (1+2)

does

6/2b = 6b/2 ?

I had jumped to this "intuitively" also at first but after being forced to write it down I came around.
I do know how to spell
AniThyng is merely the name I gave to what became my favourite Baldur's Gate II mage character :P
User avatar
Terralthra
Requiescat in Pace
Posts: 4741
Joined: 2007-10-05 09:55pm
Location: San Francisco, California, United States

Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2)

Post by Terralthra »

It's an ambiguous expression, because it's not possible to set standard type using horizontal fractions. If it were, whether it's "6/[2*(1+2)]" or "6/2*(1+2)". With the assumption that what is typed is what is meant, 9 is the correct answer. If it were set with a horizontal fraction instead of the (ambiguous) division operator, it would be immediately obvious which is meant.
User avatar
Feil
Jedi Council Member
Posts: 1944
Joined: 2006-05-17 05:05pm
Location: Illinois, USA

Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2)

Post by Feil »

Operations with equivalent primacy evaluate left to right. Putting parentheses around 6/2 would add clarity, but not change meaning.
User avatar
Highlord Laan
Jedi Master
Posts: 1394
Joined: 2009-11-08 02:36pm
Location: Christo-fundie Theofascist Dominion of Nebraskistan

Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2)

Post by Highlord Laan »

bilateralrope wrote:6/2 * (1+2)
6/2 * (3)
3*3
9

How do those people favoring incorrect answers try to justify their answers ?
Being out of practice. I did catch myself after my first mistake though.
Never underestimate the ingenuity and cruelty of the Irish.
User avatar
The Vortex Empire
Jedi Council Member
Posts: 1586
Joined: 2006-12-11 09:44pm
Location: Rhode Island

Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2)

Post by The Vortex Empire »

Judging by the comments on these things that go around Facebook every now and then, people get it wrong because they don't know whether or not to use Order of Operations. Even though you always use it.
User avatar
slebetman
Padawan Learner
Posts: 261
Joined: 2006-02-17 04:17am
Location: Malaysia

Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2)

Post by slebetman »

The correct answer is that in algebra, the expression is ambiguous. The left-to-right rule is from calculators and programming languages but not algebra per se. As such the answer is that the expression is technically a form of syntax error.

The correct way to write the expression is either to add additional parenthesis to clarify what you mean of to write it in proper algebraic form:

Code: Select all

      6
__________

 2 ( 1 + 2)
or

Code: Select all

6
_    ( 1 + 2)

2
User avatar
Terralthra
Requiescat in Pace
Posts: 4741
Joined: 2007-10-05 09:55pm
Location: San Francisco, California, United States

Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2)

Post by Terralthra »

That's what I was trying to say, but I didn't use code blocks to make it clear. Thanks for the reinforcement.
User avatar
Batman
Emperor's Hand
Posts: 16329
Joined: 2002-07-09 04:51am
Location: Seriously thinking about moving to Marvel because so much of the DCEU stinks

Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2)

Post by Batman »

The way I was taught math, it works the way bilateralrope did it. You calculate the stuff in parentheses then figure the result into the equation.
'Next time I let Superman take charge, just hit me. Real hard.'
'You're a princess from a society of immortal warriors. I'm a rich kid with issues. Lots of issues.'
'No. No dating for the Batman. It might cut into your brooding time.'
'Tactically we have multiple objectives. So we need to split into teams.'-'Dibs on the Amazon!'
'Hey, we both have a Martian's phone number on our speed dial. I think I deserve the benefit of the doubt.'
'You know, for a guy with like 50 different kinds of vision, you sure are blind.'
User avatar
fuzzymillipede
Youngling
Posts: 96
Joined: 2005-03-17 03:05pm

Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2)

Post by fuzzymillipede »

Terralthra wrote:It's an ambiguous expression, because it's not possible to set standard type using horizontal fractions. If it were, whether it's "6/[2*(1+2)]" or "6/2*(1+2)". With the assumption that what is typed is what is meant, 9 is the correct answer. If it were set with a horizontal fraction instead of the (ambiguous) division operator, it would be immediately obvious which is meant.
It's not ambiguous. If you want to specify a horizontal fraction using the standard division symbol, you need to enclose the denominator in a set of parenthesis.

Code: Select all

      6
__________

2 ( 1 + 2)
translates to

Code: Select all

6 / (2 ( 1 + 2))
In no case does it translate to

Code: Select all

6 / 2 ( 1 + 2)
, which is evaluated differently.
User avatar
ArmorPierce
Rabid Monkey
Posts: 5904
Joined: 2002-07-04 09:54pm
Location: Born and raised in Brooklyn, unfornately presently in Jersey

Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2)

Post by ArmorPierce »

Where people seem to be making the mistake is applying the order of operations, or as people remember it, PEMDAS. They see Multiplication comes before Division so assume that you have to multiply first when in actuality multiplication and Division (and Addition and subtraction) have the same precedence and in those cases you work the problem for that left to right.
Brotherhood of the Monkey @( !.! )@
To give anything less than your best is to sacrifice the gift. ~Steve Prefontaine
Aoccdrnig to rscheearch at an Elingsh uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht frist and lsat ltteer are in the rghit pclae. The rset can be a toatl mses and you can sitll raed it wouthit a porbelm. Tihs is bcuseae we do not raed ervey lteter by it slef but the wrod as a wlohe.
Blayne
On Probation
Posts: 882
Joined: 2009-11-19 09:39pm

Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2)

Post by Blayne »

I think you can also prove it through mathematical induction.

6/2 * (1+2) = 9

(3*2)/2 * (1+2) = (3)^2

2(2k+1)/2 * (2k+1) = (2k+1)^2

If k is true, then k+1 is true.

2(2(k+1)+1)/2 * (2(k+1)+1) = (2(k+1)+1)^2

Simply: (2k+3)(2k+3)=(2k+3)^2

I think I've skipped a step in the induction process of where we add (2k+3)(2k+3) to both sides of our original equation but it should suffice to show that LHS = RHS in this instance no matter for what value of k; also I'm not 100% if that's what you do when you are not proving a sequence/series.
User avatar
Surlethe
HATES GRADING
Posts: 12267
Joined: 2004-12-29 03:41pm

Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2)

Post by Surlethe »

Blayne, how is induction relevant to this arithmetic question? You use induction to prove a family of propositions indexed by the natural numbers, not to evaluate a single arithmetic expression. Actually you seem to be proving that (2k+1)(2k+1) = (2k+1)^2 for all k ... you don't need induction to tell you that.
A Government founded upon justice, and recognizing the equal rights of all men; claiming higher authority for existence, or sanction for its laws, that nature, reason, and the regularly ascertained will of the people; steadily refusing to put its sword and purse in the service of any religious creed or family is a standing offense to most of the Governments of the world, and to some narrow and bigoted people among ourselves.
F. Douglass
Blayne
On Probation
Posts: 882
Joined: 2009-11-19 09:39pm

Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2)

Post by Blayne »

I thought it was valid use of induction but I am mistaken.
Post Reply