6/2*(1+2)=? - Music Banter Music Banter

Go Back   Music Banter > Community Center > The Lounge > Games, Lists, Jokes and Polls
Register Blogging Today's Posts
Welcome to Music Banter Forum! Make sure to register - it's free and very quick! You have to register before you can post and participate in our discussions with over 70,000 other registered members. After you create your free account, you will be able to customize many options, you will have the full access to over 1,100,000 posts.

Closed Thread
 
Thread Tools Display Modes
Old 05-01-2011, 08:30 AM   #101 (permalink)
Dat's Der Bunny!
 
MoonlitSunshine's Avatar
 
Join Date: Jul 2006
Location: Ireland
Posts: 1,088
Default

It doesn't change any of my arguments though. Even the simplest calculator can be programmed to allow for bad syntax.

@chiron: I would assume that they were posting in the language of the rest of the sentence :P
__________________
"I found it eventually, at the bottom of a locker in a disused laboratory, with a sign on the door saying "Beware of the Leopard". Ever thought of going into Advertising?"

- Arthur Dent
MoonlitSunshine is offline  
Old 05-01-2011, 08:41 AM   #102 (permalink)
FakingSuicideForApplause
 
Dr.Seussicide's Avatar
 
Join Date: Jul 2009
Location: I live in a van down by the river
Posts: 1,365
Default

Quote:
Originally Posted by MoonlitSunshine View Post
It doesn't change any of my arguments though. Even the simplest calculator can be programmed to allow for bad syntax.

@chiron: I would assume that they were posting in the language of the rest of the sentence :P
Are you saying that Matlab is programmed to allow for bad syntax?

At any rate, the problem question is underspecified. Therefore, to solve this problem we would have to further specify it. Generally, the simplest solution is always best, as given by Occam's razor. Hence,

For 6/2*(1+2),

It is simpler to say (6/2)*(1+2)

Instead of: 6/(2*(1+2)).
__________________
I'll stay if I ever could, and pick up your pieces babe, because there's never a perfect day.

Dr.Seussicide is offline  
Old 05-01-2011, 09:00 AM   #103 (permalink)
Dat's Der Bunny!
 
MoonlitSunshine's Avatar
 
Join Date: Jul 2006
Location: Ireland
Posts: 1,088
Default

... Which is essentially what I've been saying since the first page. While the most common answer is 9, it is ambiguous without more parentheses. Occam's Razor is an interesting argument in favour of 9, though, but I'm glad you feel the original problem is underspecified!
__________________
"I found it eventually, at the bottom of a locker in a disused laboratory, with a sign on the door saying "Beware of the Leopard". Ever thought of going into Advertising?"

- Arthur Dent
MoonlitSunshine is offline  
Old 05-01-2011, 09:53 AM   #104 (permalink)
...here to hear...
 
Lisnaholic's Avatar
 
Join Date: Nov 2010
Location: He lives on Love Street
Posts: 4,444
Default

Quote:
Originally Posted by oojay View Post
6/2*(1+2) = 6/2*(3) = 6/6 = 1

Parentheses
Exponents (and Roots)
Multiplication
Division
Addition
Subtraction

This is like sixth grade math guys, seriously.

Mathematical Order Of Operations
oojay has a good wiki link and comes up with the better answer, in my opinion, although his method relies on a mnemonic which shouldn`t be thoughtlessly applied to every case.

Quote:
Originally Posted by MoonlitSunshine View Post
The answer is you need more parentheses.


... you cannot define an operator or it's inverse taking "precedence". In fact, you cannot define any operator taking precedence over another, as that is the realm of ambiguous convention. You might as well just say 1+1 = 3 while you're at it. The only true mathematical description of precedence is through the use of parentheses, as that is their explicit function. The fact is that the order in which operators are evaluated is a dangerous form of shortcut which honestly shouldn't be taught.

Conclusion: The statement is ambiguous. In order to have a "true" answer, another pair of parentheses needs to be added.
I think MoonlitSunshine has the clearest analysis so far.
I can`t remember what I was taught (in England) about precedence and order of operations, but we were taught to use parenthesis to avoid ambiguity.
So, if I had wanted the answer to be 9, I would have written : (6/2)(1+2) = 3 x 3 = 9
and if I had wanted the answer to be 1, I would have written : 6/2(1+3) = 6/(2 x 3) = 1

So,it`s an interesting question, EvilChuck, but my answer to the guy would be," Go back and write what you mean properly."
Lisnaholic is offline  
Old 05-01-2011, 10:12 AM   #105 (permalink)
The Music Guru.
 
Burning Down's Avatar
 
Join Date: Jun 2009
Location: Beyond the Wall
Posts: 4,858
Default

Quote:
Originally Posted by Lisnaholic View Post
So, if I had wanted the answer to be 9, I would have written : (6/2)(1+2) = 3 x 3 = 9
and if I had wanted the answer to be 1, I would have written : 6/2(1+3) = 6/(2 x 3) = 1
I think this is the best example of the two possible solutions yet.
Burning Down is offline  
Old 05-01-2011, 10:55 AM   #106 (permalink)
A.B.N.
 
djchameleon's Avatar
 
Join Date: Aug 2006
Location: NY baby
Posts: 11,455
Default

I haven't read all of the posts but I think something that people are forgetting with PEMDAS is that

Multiplication and Division get the same priority

So does Addition and Subtraction.

You always do the order of operations from left to right.
__________________
Fame, fortune, power, titties. People say these are the most crucial things in life, but you can have a pocket full o' gold and it doesn't mean sh*t if you don't have someone to share that gold with. Seems simple. Yet it's an important lesson to learn. Even lone wolves run in packs sometimes.


Quote:
Originally Posted by RoxyRollah View Post
IMO I don't know jack-**** though so don't listen to me.
Quote:
Originally Posted by Franco Pepe Kalle View Post
The problem is that most police officers in America are psychopaths.
Quote:
Originally Posted by The Batlord View Post
You're a terrible dictionary.
djchameleon is offline  
Old 05-01-2011, 11:21 AM   #107 (permalink)
Mate, Spawn & Die
 
Janszoon's Avatar
 
Join Date: May 2007
Location: The Rapping Community
Posts: 24,593
Default

Quote:
Originally Posted by Janszoon View Post
When you google "order of operations" it doesn't seem like there's much disagreement at all. Every link I click on seems to say that multiplication and division are of equal rank, as are addition and subtraction.
Quote:
Originally Posted by MoonlitSunshine View Post
And generally, that's fine, as multiplication and addition are associative operations (it doesn't matter what order you do them in). It's where there's ambiguity over which elements the inverse is being applied to that there's a problem.

Consider a situation where you have a/b/c. Is that (a/b)/c, or a/(b/c)? take an example, 2/3/4. (2/3)/4 = 2/12 = 1/6, but 2/(3/4) = 8/3. The two answers are very, very different, but how do you define which one is the fraction? Which equal priority operation needs to be done first? The same problem holds when you have a/b*c. Is that (a/b)*c, or a/(b*c)? The fact that most people assume it is (a/b)*c does not make the syntax any more correct: If someone writes "I hae that" you could assume they left out a t or a v; depending on which it is they've left out, it makes a big difference to the meaning of the sentence, but you can usually figure out which they mean by the context of the sentence. It doesn't however, make the sentence, if isolated from the context, any less ambiguous. Does that make sense?
Was this a reply to me? Because if so it doesn't really seem to relate to what I was saying.
Janszoon is offline  
Old 05-01-2011, 12:17 PM   #108 (permalink)
Dat's Der Bunny!
 
MoonlitSunshine's Avatar
 
Join Date: Jul 2006
Location: Ireland
Posts: 1,088
Default

It was. I was showing why "equal priority/rank" is a minefield.
__________________
"I found it eventually, at the bottom of a locker in a disused laboratory, with a sign on the door saying "Beware of the Leopard". Ever thought of going into Advertising?"

- Arthur Dent
MoonlitSunshine is offline  
Old 05-01-2011, 12:18 PM   #109 (permalink)
Mate, Spawn & Die
 
Janszoon's Avatar
 
Join Date: May 2007
Location: The Rapping Community
Posts: 24,593
Default

Quote:
Originally Posted by MoonlitSunshine View Post
It was. I was showing why "equal priority/rank" is a minefield.
Why is it a mine field? When they're equal rank you just move from left to right. Seems easy enough.
Janszoon is offline  
Old 05-01-2011, 12:21 PM   #110 (permalink)
Dat's Der Bunny!
 
MoonlitSunshine's Avatar
 
Join Date: Jul 2006
Location: Ireland
Posts: 1,088
Default

Because it's all very well to say that, but there's absolutely no guarantee that the person you're communicating with feels the same way... as is evident from this thread.
__________________
"I found it eventually, at the bottom of a locker in a disused laboratory, with a sign on the door saying "Beware of the Leopard". Ever thought of going into Advertising?"

- Arthur Dent
MoonlitSunshine is offline  
Closed Thread




© 2003-2024 Advameg, Inc.