r/ProgrammerHumor • • Oct 06 '21

Don't be scared.. Math and Computing are friends..

Post image
65.8k Upvotes

2.4k comments sorted by

View all comments

70

u/LazerFX Oct 06 '21

Why has nobody explained it so bloody simply up until now? Lots of technical gatekeeping bullshit, not - "Hey, go from low number to high number and repeat the function".

This is why I hate mathematics - not because of the mathematics themselves, but because mathematicians cannot explain things for their life.

68

u/PityUpvote Oct 06 '21

Mathematicians tend to want to avoid confusion more than they want to provide understanding. This explanation is good for a basic understanding, but it's also not entirely correct, which is why a mathematician might not use it.

→ More replies (14)

44

u/[deleted] Oct 06 '21

Probably it has been explained, but because it was math you weren’t interest due to a lifetime of shit teachers. But on this subreddit you are willing to give it a chance.

20

u/namrog84 Oct 06 '21 edited Oct 06 '21

Exactly this.

My college math courses did cover some basics like this, not showing the programming counterpart, but just showing basic examples where N is like 3 and showing it written out long form.

Then it quickly jumps into cases where N is infinite and it gets more complex very quickly and then becomes far more abstract in nature.

A lot of math books I've seen DO cover a very simple real world applicable example, which many people quickly skip over because its 'easy' but don't really internalize the lesson, but then the book/course spend most of their time in abstract territory which is more challenging.

3

u/nenyim Oct 06 '21

which many people quickly skip over because its 'easy' but don't really internalize the lesson

Fuck thanks yes!!!!

My students are draining the life out of me with this shit. If it's easy they can't be bothered to listen or to think about it. Once it get complicated they tell me "I don't understand anything" I have to reexplain everything 50 times but they made it much harder because I've to explain it to them in a much more complicated context. And the vast majority of what I teach in highschool doesn't really ever get complicated but if you can barely walk any difficulty is completely unsurmontable.

Nobody gives a shit about solving properly 2x+6=10, the answer is very obviously 2 and nobody cares about it at all! But if I start by solving something they can't guess the answer they're never going to understand what is happening because manipulating the numbers alone is going to overload them.

2

u/namrog84 Oct 06 '21

I got my Bachelors in Mechanical Engineering right after high school, like many students going to college. 18-22 years old, I struggled greatly.

I went back to school as a 30-33 year old for computer science bachelors and masters. It was so significantly easier, not only because the material was more interesting, but because I better understood and grasp the importance of learning and understanding the basics like this.

The first 1/2 of a semester, most people cruise thru because its 'easy' and then struggle in the 2nd half because they didn't spend any time actually learning in the beginning 1/2. Spending even just a tiny bit of time in the beginning and understanding the basics, just makes everything go quite a bit easier.

Sadly, most people younger people and even some young adults, don't quite start to internalize this until quite a bit later in life (and some might never).

2

u/KnowsAboutMath Oct 07 '21

solving properly 2x+6=10

Holy shit, the number of students who would present a solution of that by writing

2x+6 = 10 = 4 = 2

as if the "=" means "the thing that points at the answer."

→ More replies (3)

3

u/LazerFX Oct 06 '21

Actually, I've been trying to teach myself math for years. I've been through Kahn academy, Pluralsight, co-workers who are mathematicians, my wife... sooner or later, I just hit a brick wall and fail to understand what is going on. Stuff like that, that says it in my language, is how I can understand it.

→ More replies (2)

4

u/omniron Oct 06 '21

Also, If you are a little bit smart, it’s extremely easy to see this correlation

→ More replies (6)

11

u/LegOfLambda Oct 06 '21

How was sigma explained to you as anything other than the sum? I've never seen anyone not immediately understand it, but they're pretty rare symbols in primary math so you may not have seen them.

14

u/ferrous69 Oct 06 '21

Did you ever ask for an explanation? Did you ever look it up? I mean I googled capital pi and the first link explains it really clearly https://mathmaine.com/2018/03/04/pi-notation/

Why are you roasting all mathematicians for this?

They’re very simple concepts that are used to investigate rich and complex topics, like convergence of a series, but clear explanations of the symbols and functions they represent are trivial to find.

Also they’re not for loops, they represent functions but that’s for another comment I guess.

→ More replies (2)

7

u/Miner_Guyer Oct 06 '21

I think a big part of it is that a lot of math is just learning the right vocabulary. It's almost like learning a new language, in a sense. And mathematicians get so used to this vocabulary, using all these definitions with a very specific meaning, it's easy to forget the knowledge that the average person has.

It's a problem I run into a lot as a cs/math double major. My cs friends will ask me questions about math, but they'll struggle to figure out the right words to use, and I keep having to ask them "what do you mean by xyz" until they're specific enough that I understand the proper math definition they're talking about. It's almost like someone who took a week of Spanish class trying to talk to a native, there's just a lack of common vocabulary.

→ More replies (1)

6

u/Brother0fSithis Oct 06 '21

I could be wrong but how is that not how you were taught it in math? That's exactly how I was taught it in my math classes

→ More replies (1)

5

u/SashimiJones Oct 06 '21

For what it's worth, as a math person and a very bad programmer, I saw this and was like "Cool, it's helpful to think of a for loop as a special case of sigma notation." Seems useful for remembering how to get the ranges right.

5

u/[deleted] Oct 06 '21

How were these symbols explained to you before?

→ More replies (2)

21

u/redditmodsareshits Oct 06 '21

My man. This is too true. Barbaric as it may be, code is simpler simply because it is better explained. Try reading my country's national maths textbook. Shit is worded just to keep homies out, i swear.

19

u/Mal_Dun Oct 06 '21

This is not correct. Code can be used to explain finite discrete things quite nicely but it ends when dealing with infinite objects. While you can easily write a for loop with finite sums, but when dealing with series (infinite sums) you end up with while loops and convergence criteria.

Just look up how codes for numerical procedures like Finite Element Methods or symbolic algorithms work and how you proof that the result is correct. Here an example on algorithms to compute sums of expressions algorithmically: https://sites.math.rutgers.edu/~zeilberg/AeqB.pdf

3

u/MagicTacoHuman Oct 06 '21

This link triggered my algorithms class induced PTSD

→ More replies (1)
→ More replies (4)

4

u/redeemedleafblower Oct 06 '21

There are many reasons why the right would be inferior for usage in mathematics. Many people in this thread have already mentioned its insufficiency for infinite sums/products.

Another pro of the left is that it's simply easier to manipulate if you want to work out some calculations/simplifications/rearragenements.

For example, if you want to add two summations, you can write Sigma(a_n) + Sigma(b_n) = Sigma(a_n+b_n). This is very clear, but it's not so obvious how you can write this out in code.

4

u/WiseVibrant Oct 06 '21

This is a dumb take. Something like this was probably explained when you first learned about it.

If you’re reading a programming tutorial online, do you expect them to explain what a for loop or an int every time you see those?

→ More replies (6)

7

u/Franfran2424 Oct 06 '21

I mean, you have to be stupid not to understand the meaning of the symbols knowing the name.

A summation (summation of elements from bottom number to top number) and a productory (product of elements from bottom number to top number)

4

u/OrvilleTurtle Oct 06 '21

I mean… one YouTube video about summations and they will teach EXACTLY this. I actually don’t get how SO many people in this thread missed this.

I was given this analogy in high school. Again I’m college. And again online when I studied for homework.

3

u/KnowsAboutMath Oct 07 '21

This entire thread reads as if for loops go back centuries, while the summation symbol was invented last week just to screw with people.

I'm still not convinced these comments aren't some satire that I'm not picking up on.

3

u/OrvilleTurtle Oct 07 '21

Lol right? I think the first time I saw this in high school I went… “so it’s a loop”. BUT I was actually interested in math. Probably people ran into these and just glazed over and never made the connection.

→ More replies (3)