I hate math, my teacher taught is as first in last out and to this day I still get confused. The answer is 9 right?
Comment on SBA #119 maths
remon@ani.social 20 hours ago
Well, Patrick IS an idiot … so it checks out?
KC_Royalz@lemmy.world 16 hours ago
remon@ani.social 16 hours ago
Yes, at least by the most common agreed on convention. Almost any mathematician, programming language, search engine or spreadsheet software will say it’s 9. It is for all intents and purposes the right answer.
carmo55@lemmy.zip 1 hour ago
There is no right answer. It just depends on convention. It’s like color vs colour, neither has been shouted down from the heavens to be the only way to write something, it depends on culture.
agent_nycto@lemmy.world 20 hours ago
It is one though, you gotta do multiplication first
LORDSMEGMA@sh.itjust.works 20 hours ago
No. After you do the parentheses, multiplication and division are done left to right.
StarvingMartist@sh.itjust.works 19 hours ago
Yeah, gonna need to see a proof before I trust ANYONE on lemmy
dalekcaan@feddit.nl 17 hours ago
en.wikipedia.org/wiki/Order_of_operations
LORDSMEGMA@sh.itjust.works 15 hours ago
Multiplication and division are the same operation
6 * (1 / 2) = 6 / 2
LostCarcosan@lemmy.today 18 hours ago
Multiplication/division and addition/subtraction both happen left to right. They… Didn’t teach you that in school?
ChairmanMeow@programming.dev 19 hours ago
It can be both depending on how you handle operator precendence.
PEMDAS definitely doesn’t result in 1, but in 9, since under PEMDAS multiplication and division have the same priority (and thus should resolve left-to-right). So, you should resolve to 9 (6/2(2+1) => 6/2(3) => 6/23 => 33 => 9).
However, there’s also PEJMDAS, which suggests that implied multiplication has an operator precedence greater than regular multiplication/division (J for Juxtaposition). This version says you should do 6/2(2+1) => 6/(22 + 21) => 6/(4+2) => 6/6 => 1.
The issue is that there is no universal agreement on which is correct. Most textbooks don’t even use the / operator, but instead rely on writing out the full fraction like ⁶⁄₂₍₂₊₁₎ or ⁶⁄₂(2+1). This removes any ambiguity there might be, and thus they don’t touch on which one is actually correct.
Most (but not all) calculators these days will treat implied multiplication the same as regular multiplication, so you get 9 in the given example. Most programming languages do the same, or outright disallow implied multiplication because it only confuses people. Academics won’t ever use the ambiguous notation and will make sure to remove any ambiguity by either adding parentheses or using a notation like ⁶⁄₂₍₂₊₁₎, which makes things much more clear.
Neither 9 nor 1 is wrong, the question is just stupid.
db2@lemmy.world 13 hours ago
Now do 2+2=5
remon@ani.social 19 hours ago
No you don’t, decision is on the left, so it comes first
probablymissing@lemmy.world 15 hours ago
there’s no way you’re serious Image
agent_nycto@lemmy.world 13 hours ago
:y
EmpathicVagrant@lemmy.world 12 hours ago
P/E/M(&)D/A(&)S
Atomic@sh.itjust.works 19 hours ago
remon@ani.social 19 hours ago
The precedence goes like this:
parentheses > exponents > (multiplication = division) > (addition = substraction)
If you encounter operators with the same precedence (like multiplication and division) you go by the order they appear in the equation, left to right.