Get your fill of sci-fi, science, and mockery of stupid people
* FAQ    * Search   * Register   * Login 
Want to support this site? Click

Quote of the Week: "A great civilization is not conquered from without until it has destroyed itself from within." - Will Durant, American historian (1885-1981)


All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: SDNet Brain Trust - enlighten me on 6 / 2 (1+2) PostPosted: 2012-10-16 01:20am
Offline
Jedi Council Member

Joined: 2003-09-08 12:47pm
Posts: 1970
Location: Took an arrow in the knee.
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

Top
 Profile  
 Post subject: Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2) PostPosted: 2012-10-16 01:31am
Offline
Jedi Council Member

Joined: 2005-06-25 06:50pm
Posts: 2219
Location: New Zealand
6/2 * (1+2)
6/2 * (3)
3*3
9

How do those people favoring incorrect answers try to justify their answers ?

Top
 Profile  
 Post subject: Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2) PostPosted: 2012-10-16 02:00am
Offline
Jedi Council Member

Joined: 2003-09-08 12:47pm
Posts: 1970
Location: Took an arrow in the knee.
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

Top
 Profile  
 Post subject: Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2) PostPosted: 2012-10-16 02:32am
Offline
Sith Marauder
User avatar

Joined: 2007-10-05 09:55pm
Posts: 3719
Location: San Francisco, California, United States
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.

Top
 Profile  
 Post subject: Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2) PostPosted: 2012-10-16 02:40am
Offline
Jedi Council Member
User avatar

Joined: 2006-05-17 05:05pm
Posts: 1855
Location: New Jersey, USA
Operations with equivalent primacy evaluate left to right. Putting parentheses around 6/2 would add clarity, but not change meaning.



Image

Top
 Profile  
 Post subject: Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2) PostPosted: 2012-10-16 10:57am
Offline
Jedi Knight
User avatar

Joined: 2009-11-08 03:36pm
Posts: 874
Location: Christo-fundie Theofascist Dominion of Nebraskistan
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.

Top
 Profile  
 Post subject: Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2) PostPosted: 2012-10-16 03:52pm
Offline
Jedi Master
User avatar

Joined: 2006-12-11 10:44pm
Posts: 1386
Location: Rhode Island
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.

Top
 Profile  
 Post subject: Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2) PostPosted: 2012-10-16 11:49pm
Offline
Padawan Learner
User avatar

Joined: 2006-02-17 05:17am
Posts: 247
Location: Malaysia
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:
      6
__________

 2 ( 1 + 2)


or

Code:
6
_    ( 1 + 2)

2

Top
 Profile  
 Post subject: Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2) PostPosted: 2012-10-17 03:32am
Offline
Sith Marauder
User avatar

Joined: 2007-10-05 09:55pm
Posts: 3719
Location: San Francisco, California, United States
That's what I was trying to say, but I didn't use code blocks to make it clear. Thanks for the reinforcement.

Top
 Profile  
 Post subject: Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2) PostPosted: 2012-10-18 12:07am
Offline
Emperor's Hand
User avatar

Joined: 2002-07-09 04:51am
Posts: 13656
Location: Looking for another drawer
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 kids 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.'

Top
 Profile  
 Post subject: Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2) PostPosted: 2012-10-23 08:10pm
Offline
Youngling
User avatar

Joined: 2005-03-17 04:05pm
Posts: 87
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:
      6
__________

2 ( 1 + 2)


translates to

Code:
6 / (2 ( 1 + 2))


In no case does it translate to
Code:
6 / 2 ( 1 + 2)
, which is evaluated differently.

Top
 Profile  
 Post subject: Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2) PostPosted: 2012-10-27 09:58am
Offline
Rabid Monkey
User avatar

Joined: 2002-07-04 09:54pm
Posts: 5628
Location: Born and raised in Brooklyn, unfornately presently in Jersey
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.

Top
 Profile  
 Post subject: Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2) PostPosted: 2012-10-28 12:50pm
Offline
On Probation

Joined: 2009-11-19 10:39pm
Posts: 882
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.

Top
 Profile  
 Post subject: Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2) PostPosted: 2012-10-31 10:39pm
Offline
HATES GRADING
User avatar

Joined: 2004-12-29 04:41pm
Posts: 12166
Location: Hiding a pot of gold at the end of the Ricci flow
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.



"... alas, too many people think consistency the hobgoblin of little minds." -Publius

Daily Nugget of Wisdom from Goldman Sachs:
"I say 'keep the change' purely for my own convenience."

"A space shuttle on the back of an aircraft carrier in New York City is perhaps the most American thing you could have without the help of a deep fryer. I'm surprised anyone in the US opposes it." - Gandalf

WARNING: May become overexcited by mathematics or monetary policy.

Top
 Profile  
 Post subject: Re: SDNet Brain Trust - enlighten me on 6 / 2 (1+2) PostPosted: 2012-11-02 12:36am
Offline
On Probation

Joined: 2009-11-19 10:39pm
Posts: 882
I thought it was valid use of induction but I am mistaken.

Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group