Music Banter - View Single Post - 6/2*(1+2)=?
Thread: 6/2*(1+2)=?
View Single Post
Old 05-01-2011, 07:44 AM   #94 (permalink)
MoonlitSunshine
Dat's Der Bunny!
 
MoonlitSunshine's Avatar
 
Join Date: Jul 2006
Location: Ireland
Posts: 1,088
Default

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?
__________________
"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