There's no point any more, really. You say we shouldn't cling to what we were told when we were young about BODMAS (you also had an example about electrons, but my knowledge of physics is very limited so I cannot comment), but here I am telling you that since multiplication of real numbers is associative and commutative the order you decide to do it is redundant and all I get back is "standard order of operations".That's wrong. There is only one correct answer when following the standard order of operations, and that is 9.
As there is no operator in 2(2+1) people are assuming you do the whole thing to work out the bracket. In reality you don't, it's 2x(2+1), so 2x3. In the whole equation this would not = 6 as the division is first, making it 3x3.
Unless I'm doing something wrong, which is possible![]()
How is the order redundant? If you want to get 1, parse it right-to-left (the wrong way):the order you decide to do it is redundant and all I get back is "standard order of operations"
Division and multiplication can be done in any order. Same with addition and subtraction, powers and roots... the reason for this is that they are the exact same operation.you're forgetting to do the division before multiplication
How is the order redundant? If you want to get 1, parse it right-to-left.
If you want to get 9, parse it left-to-right.
I would contend that the rules are redundant, when such an expression will never arise in real life, outside of an exam.
The order is redundant. You get different answers because the problem isn't written properly. When you parse right to left you multiply by 1/3, when you parse left to right you multiply by 3.How is the order redundant? If you want to get 1, parse it right-to-left (the wrong way):
1) 6/2(3)
2) 6/6
3) = 1
If you want to get 9, the right answer, parse it left-to-right (the right way, the way specified by the standard order of operations).
1) 6/2(3)
2) 3(3)
3) = 9
Fixed.
The order is redundant. You get different answers because the problem isn't written properly. When you parse right to left you multiply by 1/3, when you parse left to right you multiply by 3.
This isn't a case of the "order of operations". This is a case of doing two completely different things. I will make this bold and in capitals this time, just to be sure:
MULTIPLICATION OF REAL NUMBERS IS BOTH COMMUTATIVE AND ASSOCIATIVE
Ah, the glory of computer scienceIt has nothing to do with the Real numbers, it is simply a matter of notation. The notation is very unambiguous as nobody ever parses right to left.
Ah, the glory of computer science![]()
They shouldn't, because there is one rule. http://en.wikibooks.org/wiki/Algebra/Order_of_Operations#The_Standard_Order_of_OperationsIt seems that programmers see the problem differently to mathematicians/physicists.