Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Got it wrong !

granddad

Well-Known Member
Most Helpful Member
Because I assumed (2x6) dont think i understood PEMDAS (ever)
wrong.jpg
ansa.jpg
 
Who says it's "wrong". It depends on the rules used to program your calculator. Who is the arbiter of right and wrong? Be careful who you allow to be the owner of truth...

 
Its weird... People put brackets in... No it does brackets first. 12/2x6 if you write 12 / (2x6) you introduced more to the sum. Calculators run left to right I remember BODMAS Then they said BOMDAS.. then they said BIDMAS now its PEMDAS... BUT when helping my 12 year old grandson school said no.

a-b+c is a-b then add c... Its is obviously said that b+c then a - total... XXXX wrong... Go figure
 
Reverse Polish don’t need no stinkin’ brackets.

And 2^2^2 is ambiguous

What about RTL languages? Math is an exception and is done LTR
 
Last edited:
My theory is coders would see the equation as 12 / (2x6); whether the Parentheses were there or not.
 
My theory is coders would see the equation as 12 / (2x6); whether the Parentheses were there or not.
The theory from Wikipedia is that people know to add parenthesis or not based on the context of the discussion and these meme equations are simply "gotcha" games. Note also that each calculator (from photo in the margins of the Wikipedia link) will give different results.
 
Whilst it is possible to get the correct result using the BODMAS mantra, my own opinion and what I use in practice is to put brackets to remove any ambiguity.

JimB
 
Compare with the statements:

Eats shoots and leaves

Let's eat grandma

Depending on punctuation, the meanings can be completely different.

JimB
 

Latest threads

New Articles From Microcontroller Tips

Back
Top