Questions like these reminds me why I suck at math
Questions like these reminds me why I suck at math
I hate when people act like order of operations is at all relevant to mathematical ability. It's just notation
FWIW most people were only exposed to greater and greater levels of notation rules in their math education and think correct notation is math
This, if you don't like it just express and think of everything in reverse polish notion: 2 4*2+
OK, instead of doing order of operations, just go left to right, input, input, operation.
5*4+(1+2)/3 vs 1 2 + 3 / 4 5 * +
I think I get it, but since I'm not a programmer I'll stick to the other one.
The problem is do you add first, or multiply first. The trick is to compromise: split the middle 2 into "1 + 1"
Now you have 2 + 1 + 1 x 4. One of the 1s gets added with the 2 (=3), the other gets multiplied with the 4 (=4). And now you just have 3 + 4, which equals 7By using compromise, you can bring civility and reciprocation back to mathematics
programming has forced me to remember the order of operations because I got tired of spamming parentheses. It's 2 + 8 so 10.
answer
PEMDAS says the answer is 10, because you do 2×4 first making it 2+8
When you know about pemdas and order of operations but not the order of operations or what pemdas stands for
I thought it was a picture and then the box checked when I tapped it to expand what is this witchcraft
The expression
2 + 2 x 4
is too ambiguous. Better to use(2 + (2 * 4))
or+(2, *(2, 4))
. Just expecting people to memorize operation order with ambiguous syntax is one of the reasons mathematical notation is an ugly, inelegant language.For real. Notation should be for communication of ideas and lead to correct answers not these stupid little gotcha contest that one sees in math, programming, and law (these being types of formal languages).
not being funny but it's not that hard to learn for the average guy and adding brackets doesn't really make it more readable