programming.dev

crackajack, to programmer_humor in Manager: This task only takes 30 minutes. Why did it take you the whole day?

That’s in any bloody workplace! Especially if there is o synergy between different teams.

ExLisper, to memes in 6÷2(1+2)

The fuck? I’m getting 15.

wischi,

If you are not kidding, can you show your steps I can try to help you, but I can’t currently think of a way how you’d end up with 15.

Evilsandwichman, to memes in 6÷2(1+2)

It’s about a 30min read

I’d love to help but I’ll wait for the tv miniseries

Viking_Hippie, to memes in 6÷2(1+2)
captain_aggravated, to memes in 6÷2(1+2)
@captain_aggravated@sh.itjust.works avatar

I think this speaks to why I have a total of 5 years of college and no degree.

Starting at about 7th grade, math class is taught to every single American school child as if they’re going to grow up to become mathematicians. Formal definitions, proofs, long sets of rules for how you manipulate squiggles to become other squiggles that you’re supposed to obey because that’s what the book says.

Early my 7th grade year, my teacher wrote a long string of numbers and operators on the board, something like 6 + 4 - 7 * 8 + 3 / 9. Then told us to work this problem and then say what we came up with. This divided us into two groups: Those who hadn’t learned Order of Operations on our own time who did (six plus four is ten, minus seven is three, times eight is 24, plus three is 27, divided by nine is three) Three, and who were then told we were wrong and stupid, and those who somehow had, who did (seven times eight is 56, three divided by nine is some tiny fraction…) got a very different number, and were told they were right. Terrible method of teaching, because it alienates the students who need to do the learning right off the bat. And this basically set the tone until I dropped out of college for the second time.

vithigar, to memes in 6÷2(1+2)

What’s especially wild to me is that even the position of “it’s ambiguous” gets almost as much pushback as trying to argue that one of them is universally correct.

Last time this came up it was my position that it was ambiguous and needed clarification and had someone accuse me of taking a prescriptive stance and imposing rules contrary to how things were actually being done. How asking a person what they mean or seeking clarification could possibly be prescriptive is beyond me.

Bonus points, the guy telling me I was being prescriptive was arguing vehemently that implicit multiplication having precedence was correct and to do otherwise was wrong, full stop.

Socsa,

Without any additional parentheses, the division sign is assumed to separate numerators and denominators within a complete expression, in which case you would reduce each separately. It’s very, very marginally ambiguous at best.

wischi, (edited )

👍 That was actually one of the reasons why I wrote this blog post. I wanted to compile a list of points that show as clear as humanity possible that there is no consensus here, even amongst experts.

That probably won’t convince everybody but if that won’t probably nothing will.

ook_the_librarian,
@ook_the_librarian@lemmy.world avatar

When I went to college, I was given a reverse Polish notation calculator. I think there is some (albeit small) advantage of becoming fluent in both PEMDAS and RPN to see the arbitrariness. This kind of arguement is like trying to argue linguistics in a single language.

Btw, I’m not claiming that RPN has any bearing on the meme at hand. Just that there are different standards.

This comment is left by the HP50g crew.

ryathal,

It would be better if we just taught math with prefix or postfix notation, as it removes the ambiguity.

ook_the_librarian, (edited )
@ook_the_librarian@lemmy.world avatar

Ambiguity is fine. It would tedious to the point of distraction to enforce writing math without ambiguity. You make note of conventions and you are meant to realize that is just a convention. I’m amazed at the people who are planting their feet to fight for something that what they were taught in third grade as if the world stopped there.

You’re right though. We should definitely teach different conventions. But then what would facebook do for engagement?

mihnt, (edited ) to memes in 6÷2(1+2)
@mihnt@lemmy.world avatar

When I used to play WoW years ago I’d always put -6 x 6 - 6 = -12 in trade chat and they would all lose their minds. Adding that incorrect solution usually got them more riled up than having no solution.

ParsnipWitch, (edited ) to memes in 6÷2(1+2)

Build two cases, calculate for both, drag both case through the entirety of both problems, get two answers, make a case for both answers, end up with two hypothesis. Easy!

Rinox, to memes in 6÷2(1+2)

I recall learning in school that it should be left to right when in doubt. Probably a cop-out from the teacher

wischi, (edited )

“when in doubt” is a bit broad but left to right is a great default for operations with the same priority. There is actually a way to calculate in any order if divisions are converted to multiplications (by using the reciprocal value) and subtractions are converted to additions (by negating the value) that requires at least a little bit of math knowledge and experience so it’s typically not taught until later to prevent even more confusion.

For example this: 6 / 2 * 3 can also be rewritten as 6 * 2⁻¹ * 3 and because multiplication is commutative you can now do it in any order for example like 3 * 6 * 2⁻¹

You can also “rearrange” the order without changing the meaning if you move the correct operation (left to the number) with it (should only be done with explicit multiplication)

6 / 2 * 3 into 6 * 3 / 2 (note that I moved the division with the 2)

You can even bring the two to the front. Just remember that left to the six is an “imaginary” (don’t quote me ^^) multiplication. And because we can’t just move “/2” to the beginning we have to insert a one (empty product - check Wikipedia) like so:

1 / 2 * 6 * 3

This also works for addition and subtraction

7 + 8 - 5

You can move them around if you take the operation left to the number with it. With addition the “imaginary” operation at the beginning is a plus sign and the implicit number you use is zero (empty sum - check Wikipedia)

8 - 5 + 7

or like this

0 - 5 + 8 + 7

because with negative numbers you can use the minus sign to indicate negative numbers you can even drop the leading zero like this

-5 + 8 + 7

That’s not really possible with multiplication because “/2” is not a valid notation for “1/2”

Brak,
@Brak@hexbear.net avatar

this is beautiful but my brain glazed over when i saw so many numbers, back to eating glue for me!

MBM,

6 / 2 * 3

Semi-related: something in me wants to read that as 6 / (2*3), because 6 * 3 / 2 feels like a much more ‘natural’ way to write it

jdaxe, to memes in 6÷2(1+2)

It’s hilarious seeing all the genius commenters who didn’t read the linked article and are repeating all the exact answers and arguments that the article rebuts :)

RickyRigatoni,
@RickyRigatoni@lemmy.ml avatar

I’m still not used to having combined image and text posts so I usually don’t notice the text portion if it isn’t a big ol’ wall and I hope I’m not the only one.

TheLastHero,

you are so sure that you are right and already “know it all”, why bother and even read this? There is no comment section to argue.

he made a mistake posting this to a comment section, now he must pay the price

wischi,

❤️ True, but I think one of the biggest problems is that it’s pretty long and because you can’t really sense how good/bad/convining the text is it’s always a gamble for everybody if it’s worth reading something for 30min just to find out that the content is garbage.

I hope I did a decent job in explaining the issue(s) but I’m definitely not mad if someone decides that they are not going to read the post and still comment about it.

Kichae, (edited ) to memes in 6÷2(1+2)

Ackshually, the answer is 4

6÷2*(1+2)

6÷(1+2)*2

6÷(3)*2

2*2

4

You’re welcome

Littleborat,

If there are rules about which dot comes first then you are not allowed to do this.

ryathal,

You aren’t allowed to do this because division isn’t transitive.

atomicorange,

c/TheyDidAMath

CowsLookLikeMaps,

psychopath

deadbeef79000, (edited )

Psychomath

Oha, to programmer_humor in 1 follower on GitHub = 1000 followers on other platforms 😅

github ≠ Social Media

hypnotic_nerd,
@hypnotic_nerd@programming.dev avatar

So is the twitter 😅

sabreW4K3,
@sabreW4K3@lemmy.tf avatar

!=

Littleborat, to memes in 6÷2(1+2)

You guys are doing it all wrong: ask chatgpt for the correct answer and paste it here. Done.

Who needs to learn or know anything really?

Supervisor194, (edited )
@Supervisor194@lemmy.world avatar

ChatGPT’s Answer:

The expression 6/2(1+2) involves both multiplication and division. According to the order of operations (PEMDAS/BODMAS), you should perform operations inside parentheses first, then any multiplication or division from left to right.

Let’s break down the expression step by step:

Inside the parentheses: 1 + 2 = 3

Now the expression becomes 6/2 * 3

Division: 6/2 = 3

Multiplication: 3 * 3 = 9

So, 6/2(1+2) is equal to 9.

wischi,

Chat GPT’s answer for me:

Certainly! The expression 6/2(1+2) is ambiguous due to the implicit multiplication. Let’s solve it in both ways:

  1. Implicit multiplication with higher priority:

[ \frac{6}{2}(1+2) ]

First, solve the parentheses:

[ \frac{6}{2}(3) ]

Now, perform the division:

[ 3 \times 3 = 9 ]

  1. Implicit multiplication with the same priority as division:

[ \frac{6}{2(1+2)} ]

Again, solve the parentheses:

[ \frac{6}{2(3)} ]

Now, perform the multiplication first:

[ \frac{6}{6} = 1 ]

So, depending on the interpretation of implicit multiplication, you can get different results: 9 or 1.

I think it’s funny that ChatGPT figured out 1 and 9 but has the steps completely backwards. First it points out what has high priority and then does the exact opposite, both times 🤣

CarbonScored, to programmer_humor in Manager: This task only takes 30 minutes. Why did it take you the whole day?
@CarbonScored@hexbear.net avatar

Forward three hours, me using thesaurus.com to try fit the whole gist of my change into the first line.

son_named_bort, to memes in 6÷2(1+2)

What if the real answer is the friends we made along the way?

HurlingDurling,

This is Facebook we are talking about, what friends? Everyone hates everyone on Facebook

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #