Excuse the awkwardness, but my keyboard doesn't easily support mathematical notation
Are you telling me that
_ 8___
2(2+2) isn't an exactly equivalent notation?
_ 8___
2(2+2)
But it's not a fraction. You're making it into one, so that's a different problem.
[h=2]8÷2(2+2) = 16[/h]
[h=2]8÷(2(2+2)) = 1[/h]
Well, everyone posting knows it.** Why would someone willing admit they don't know it? Why do you think age has a factor on knowing order of operations?This is stupid, millennials are stupid, common core is stupid. The answer is one and it seems like everyone here knows it.
This has me perplexed. I was taught PEMDAS and the answer is 16.
8/2(2+2)
P (2+2) = 4
E none
M 2 X 4 = 8
D 8 / 8 = 1
A was in perens
S none
So I guess I'm wrong.
Apparently this has broken the internet...
This doesn’t have anything to do with “how you were taught.” Math equations have one, concrete answer. This one is 16.
As I posted, I was quick to say "there's only one answer!" - Then I thought about it.
Mathematical concepts are concrete, how they are expressed in written form are not.
In 1978 when Brian Kernighan and Dennis Ritchie basically created the language that is the foundation of modern computing even they didn't specify which comes first, division or multiplication.
I had to go back and see which side you're on. (16)You calculate in the order they appear, not the order you want.
Also
Arithmetic in C
Rules of Operator Precedence
It follows the same rules as we earlier described.
8÷2(2+2)
8÷2(4) I still see parentheses that we need to get rid of BEFORE any other L/R M/D rules.
NOT 8÷2x4 and NOT 8÷24
Therefore
8÷8=1
I think I see the confusion now....
the [FONT=&]÷ [/FONT]denotes straight division. Meaning, it is processed left to right along with multiplication, using the normal order of operations.
Some folks are conflating [FONT=&]÷[/FONT] with a slash, or more importantly, with a "fraction" slash. Meaning, items to the left are in the numerator, and items to the right are in the denominator.