502
a very emphatic answer
(lemmy.blahaj.zone)
A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.
Rules
This is a science community. We use the Dawkins definition of meme.
If you have both multiplication and division then you do them left to right. PEMDAS doesn't mean multiplication first, nor does BEDMAS mean division first. It's PE(MD)(AS) and BE(DM)(AS) where the bracketed parts are done left to right.
Left associativity means it always operates on the following term. i.e. terms are associated with the sign on their left.
By the rule of left associativity.
No it doesn't. How on Earth did you manage to get -2?
No they're not, but I don't know yet where you're going wrong with them without seeing your working out.
You are adding more rules to protect a convention that doesn't work and doesn't mention them to begin with. If all that matters is higher orders first, then why bother having an acronym? Just say "Brackets, then higher orders". Bam. Solved it with less words than any of the acronyms.
As someone who studied mathematics, computer science, and engineering in university, I certainly don't you to tell me how to do bare bones arithmetic. I know operators apply to the numbers to their right. Everyone does. You jumped right on by the point.
With 2/2*2, you don't know if it is 2*2/2, or 2/(2*2). When you are dividing by numbers, you put them all in the denominator. If I had to put it in a line, I would at least do 2/(2)*2, to show what is in the denominator. If it is ambiguous, you have done it incorrectly.
BY CONVENTION, as I said. You don't have to repeat what I said a second time.
wow. geez. I wonder.
If you can't follow the steps guided for such a simple example, maybe we just shouldn't have this conversation. It's not like you could have tried in your head different orders to combine 3 numbers.
I'm stating the existing rules.
I don't even know what you mean by that. We have the acronyms as a reminder of the rules, as I already said.
If you know that then how did you get 2-2+2=-2?
Yes you do - left associativity. i.e. there's no brackets.
Only the first term following a division goes in the denominator - left associativity.
I didn't. You said it was a convention, and I corrected you that it's a rule.
addition first
2-2+2=4-2=2
subtraction first
2-2+2=-2+2+2=-2+4=2
left to right
2-2+2=0+2=2
3 different orders, all the same answer