Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
A lot of people who went thru school don’t know the correct answer.

At least one good principle stuck in your head. I am sure there is more.
I tend to do most of my maths in excel these days.
[doublepost=1564858289][/doublepost]
I did it in my head and arrived at the same answer (all the while hearing in my mind the echo of my maths teacher's voice as she gave instructions on the precise sequence of steps to be followed if faced with such a problem).

But, well done.
Also in my head. It’s those mornings watching countdown that help!
 
  • Like
Reactions: Scepticalscribe
We watch the repeat in the mornings around 5:30 am. I’m shocking at the letters rounds, but sometimes get the numbers.

Actually, I'm normally pretty good at crosswords (my mother was a real whizz at crosswords, until dementia claimed her), but I must confess that the conundrums on countdown (in the days when I used to watch it some wet summer afternoons with my dad) usually leave me flummoxed.
 
Seen several articles where math professors argue that it's just a poorly written formula, so, either is correct since sloppy work, no context.

Eg, If passing this through a compiler (syntax error aside), would generally be interpreted as 8 ÷ 2 x (2+2). This would be a left to right parsing, and basically comes out as (8 ÷ 2) x (2+2) = 16. Variations on this that is used as examples for coding is something like 4 x 5 + 6. Did you want (4 x 5) + 6, or, 4 x (5 + 6)?

But if writing scientific, 8 / 2(2+2) = 1
 
Well hot dog! Even I, who at one point or another, have at first try failed practically every math class I've had since grade school, got this correct. I have several talents but math sure ain't one of them. Not something I'm particularly proud of, I'm just usually very bad at reading numbers.

So thanks @BasicGreatGuy for the feeling of accomplishment!
 
In a programming language like Forth, or using RPN, there's no need for operator precedence. It's unambiguous and parenthesis-free:
8 2 2 2 + * / . \ the . prints number on top of stack, and \ is comment to end of line
8 2 / 2 2 + * . \ a different series of operands and operators, so different result
 
It's clearly 16. Not sure how anyone is getting 1.
[doublepost=1564873708][/doublepost]
That is what I was thinking also.

PEMDAS gets you 1.

Parenthesis, exponents, multiply and divide (L to R), then addition and subtraction (L to R).


PEMDAS is right but you executed it wrong. After you do the parenthesis the rest is left to right... So 8 divided by 2 then multiply it by 4 gets you 16.
 
  • Like
Reactions: Gutwrench
Nope that's wrong.

8 ÷ 2(2+2) =

8 ÷ 2(4) =
now you go left to right

8 ÷ 2 is 4
4(4)= 16.
You get 16 if you drop the parenthesis. However, dropping the parenthesis is wrong. It stays intact because it is part of the first step of PEDMAS.

8/2(2x2)
8/2(4)
8/8=1

You were solving the equation as (8/2)*(2x2) which is a different equation than what I posted, in my opinion.
[doublepost=1564874851][/doublepost]Where is @Doctor Q ?
 
Last edited:
You get 16 if you drop the parenthesis. However, dropping the parenthesis is wrong. It stays intact because it is part of the first step of PEDMAS.

8/2(2x2)
8/2(4)
8/8=1

You were solving the equation as (8/2)*(2x2) which is a different equation that what I posted, in my opinion.


why are you multiplying the 2 and the (4) before dividing the 8 by 2? you must go left to right after you do what's INSIDE the parenthesis. FYI I am 100% sure of myself, I have always been great at math.
 
Nope that's wrong.

8 ÷ 2(2+2) =

8 ÷ 2(4) =
now you go left to right

8 ÷ 2 is 4
4(4)= 16.

Exactly. Modern order of operation.
[doublepost=1564875190][/doublepost]
why are you multiplying the 2 and the (4) before dividing the 8 by 2? you must go left to right after you do what's INSIDE the parenthesis. FYI I am 100% sure of myself, I have always been great at math.

Enthusiastically agree. Multiplication and division are the same precedence therefore it’s left to right after the parens.
 
Last edited:
https://en.wikipedia.org/wiki/Order_of_operations#Mixed_division_and_multiplication

Similarly, there can be ambiguity in the use of the slash symbol / in expressions such as 1/2x.[5] If one rewrites this expression as 1 ÷ 2x and then interprets the division symbol as indicating multiplication by the reciprocal, this becomes:

1 ÷ 2 × x = 1 × 1/2 × x = 1

With this interpretation 1 ÷ 2x is equal to (1 ÷ 2)x.[1][6] However, in some of the academic literature, multiplication denoted by juxtaposition (also known as implied multiplication) is interpreted as having higher precedence than division, so that 1 ÷ 2x equals 1 ÷ (2x), not (1 ÷ 2)x.

For example, the manuscript submission instructions for the Physical Review journals state that multiplication is of higher precedence than division with a slash,[7] and this is also the convention observed in prominent physics textbooks such as the Course of Theoretical Physics by Landau and Lifshitz and the Feynman Lectures on Physics.[a]


To settle this, we might need to bring in... the Comfy Chair.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.