> -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of RussellMc > Sent: 13 March 2012 14:53 > To: Microcontroller discussion list - Public. > Subject: Re: [OT] Maths fun >=20 > > Nonsense, >=20 > ? >=20 > > the answer should be according to the rules of the system at > > hand! If a system does not adhere to its own rules it is wrong, but whe= n > > it has strange rules it is just strange. >=20 > I am saying that the answer to >=20 > 6/2 * (1+2) >=20 > as written, and based on the "proper" [tm] rules of mathematics =3D 9. > I am saying that "1" is an incorrect answer. > Do you disagree in either case? >=20 > If you do disagree, do you hold that " * " is not commutative? > Or ... ? >=20 > Is: >=20 > 6/2 * (1+2) =3D =3D (1+2) * 6/2 ? >=20 >=20 Russell, Multiplication is commutative, but obviously division is not. If the opera= tions in the equation as originally written are performed in the order taug= ht to children in the UK i.e. "BODMAS" then the division would be performed= before the multiplication and the result will be 9. This appears to form = the basis of your argument. However, this thread has already shown that in the US at least, children ar= e taught a different mnemonic (PEDMAS) which puts multiplication ahead of d= ivision in the ordering, and which yields a result of 1. This suggests that you can not guarantee that the order of evaluation that = someone will apply will be the same as your own, so parentheses should be u= sed if there is any ambiguity in the expression. Mike I sent that a little prematurely - the mnemonic that puts multiplication fi= rst is "PEMDAS". Mike =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .