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

Show parent comments

80

u/[deleted] Oct 06 '21

Yeah holy shit how was this not taught to me? I got Cs in all three levels of calculus and shit like this would have helped me immensely.

31

u/theGoddamnAlgorath Oct 06 '21

I just realized I've been writing Nashian models for decades to to sort peoples photos.

Holy shit

2

u/JustLetMePick69 Oct 06 '21

I mean you can do both for and while as infinite for(i=1; i<0; i++)

→ More replies (3)

23

u/gobblox38 Oct 06 '21

The biggest issue with calculus for most people is that it is taught in an abstract way. That's math in general though. I didn't really understand calculus until I took physics where I had real world applications for calculus.

I later took a scientific computing class where we revisited sums, series, methods, etc. and wrote code (matlab) that applied these concepts. And sure, a lot of these concepts have functions built into Matlab, but the point was to show how these functions work, what their shortcomings are, and how to determine when an approximation is good enough (ie how many steps into Taylor's series are required and when does more steps give no additional benefit).

5

u/Polar_Reflection Oct 06 '21

Exactly. A minority of us enjoy abstraction for the sake of abstraction. A good teacher will try to motivate the abstract concepts with real life examples that speak to the student. I'm lucky to have been blessed with absolutely great math teachers until I reached university (I'm still upset at my integral calculus teacher in college who spent an entire 90m lecture deriving the fundamental theorem of algebra on the board to "explain" partial fraction decomposition, before telling us he did it for fun and we didn't have to know any of it for the purposes of the course).

4

u/GogglesPisano Oct 06 '21 edited Oct 06 '21

That sounds like something I would have enjoyed, and might have tied the other stuff together better.

Things got pretty abstract in the more advanced math classes I had to take back in college (Calc III, DiffEq, etc). I kind of gave up looking for practical applications after Calculus II and just considered the stuff a theoretical intellectual exercise, something I had to get through to finish my degree.

That said, after more than two decades as professional software engineer working in healthcare and finance, I've never had to use any math more advanced than basic calculus.

3

u/gobblox38 Oct 06 '21 edited Oct 07 '21

I'm a geological engineer and most of the math I do is trig. I have calculated water flow using calculus and linear algebra.

I still dabble in higher level math as a hobby because I like it.

3

u/cbf1232 Oct 06 '21

I took a third-year physics class that had second-order differential equations in the forward to the book.

I'm not sure I've even had to do basic calculus for work. :)

3

u/Hoihe Oct 06 '21

Most of that stuff i feel is for physicists and theoretical chemists.

Computational chemists try and use cutting edge maths to try and stop our computer models from taking O(N6) to compute where N is an electron (and guess how many electrons a protein has...)

Black magic fuckery does allow us to hack the O(N6) to only apply to a part of the problem we are solving, and some also found analytical solutions that are much faster than numerically iterating through nested recursion.

3

u/bihari_baller Oct 06 '21

I didn't really understand calculus until I took physics where I had real world applications for calculus.

Interesting, I was above average in Math, but struggled hard in Physics 1&2. I actually liked E&M much more than Newtonian and Kinematics.

43

u/TheoryOfSomething Oct 06 '21

As someone who did math first and programming later and has also been a teacher, it would never occur to me to teach it this way. I do not understand why this is any simpler than teaching it as repeated addition.

24

u/[deleted] Oct 06 '21

In this case it just helps me conceptualize it as something that makes a little more sense. Code makes more sense to me than math as I'm not great at math, so it's basically just taking a concept and converting it to something I would understand better.

I mean in these two series, particularly the summation, it's easy enough and I don't think I had any struggles there. I did, however, have struggles with your higher-level series dealing with more complex subjects such as a Ramanujan series. I didn't understand Ramanujan at all until I had a programming course ask me to write one, and then it actually made a good bit of sense.

10

u/Polar_Reflection Oct 06 '21

I'd argue that if you understood the math after writing code to explain it, you were never bad at math. You either didn't have great teachers who explained the logic and the notation properly, or were turned off by things that looked unfamiliar.

5

u/[deleted] Oct 06 '21

Now that's a statement, and I could definitely agree with it. I think it's probably a mix of both where I didn't have the best math teachers, and then I didn't like unfamiliar things, but programming made sense so it helped conceptualize it.

Either way I'm graduated now and haven't used math even once in my career, so eventually I'll just be bad at math because I don't use it anymore.

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

0

u/[deleted] Oct 06 '21

[deleted]

6

u/Judge_Syd Oct 06 '21

I was taught that it was a summation and I really don't see how that could be confusing at all tbh but everyone learns differently so....

26

u/[deleted] Oct 06 '21

I mean yes, but I still didn't conceptualize it until I could see it straight up written as a for loop. Like There are a lot of math concepts that I didn't understand until I took a CS course and wrote them in code, like a Ramanujan series.

I'm not great at math and haven't been since like, middle school. I am, however, great at programming and it was sometimes easier to understand a concept in code because it just made more sense that way.

10

u/Polar_Reflection Oct 06 '21

The only difference is syntax and a lot more people taking math classes will be familiar with the mathematical notations than lines of code. General math classes shouldn't be taught in a way to cater specifically to programmers.

7

u/[deleted] Oct 06 '21

I never said they should be taught to cater to programmers, I just said that it would have helped me immensely if I had been taught this way. Even if I was teaching it to myself I probably would have done better, I just never thought to put math into code because they always had a disconnect in my mind.

→ More replies (1)

0

u/[deleted] Oct 06 '21

[deleted]

→ More replies (3)
→ More replies (2)

12

u/ajswdf Oct 06 '21

For non-programmers it could end up being a lot more confusing.

10

u/the_Hapsleighh Oct 06 '21

I’m here from /r/all and checked the comments only because I love math and I can agree, I have no idea what the letters on the right want to say but I get the symbols on the left quite easily. I think without knowing programming, it would be way harder to teach math as if it were a programming language. That being said, math in itself is it’s own language and it’s easier to understand once you realize everything is just representations for (for the most part) concepts you can visualize

→ More replies (2)

2

u/nomiras Oct 06 '21

Same here man, I had to take Cal 2 like 3 times.

2

u/Kowalskeeeeee Oct 06 '21

Idk but I was definitely in the “I did shit at math so I’m going to switch to CS” only to realize it’s just math on a screen but it definitely makes more sense in the programming context

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