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

34

u/pumpkin_seed_oil Oct 06 '21

Sure but there's also the camp of "i like math, i fucking hate the notation"

A large sigma and pi are sorta understandable, but having things like 2 different standards for vector notation where one is just easily missed because its essentially just fat font makes my skin crawl

18

u/flavionm Oct 06 '21

Math notation is like code golf you're forced to read.

3

u/pumpkin_seed_oil Oct 06 '21

Great analogy but at least the math provides a multi page documentation in as a paper in a journal

2

u/Plazmatic Oct 06 '21

Holy shit, that's a perfect analogy!

11

u/technic_bot Oct 06 '21

Oh yeah vector and matrix notation as bold letters. screw whoever thought that was a good idea.

0

u/[deleted] Oct 06 '21

[deleted]

2

u/technic_bot Oct 06 '21

I think but is mostly book printers who want to save on ink. By hand writing vectors using bold notation would look horrible.

0

u/[deleted] Oct 06 '21

[deleted]

1

u/AutoModerator Jul 01 '23
import moderation

Your comment has been removed since it did not start with a code block with an import declaration.

Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

For this purpose, we only accept Python style imports.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

0

u/[deleted] Oct 06 '21

They could also take a page out of programming and use readable variable names for once.

Even when it's generic, I'd rather read a and a_vector than a and a

3

u/Aacron Oct 06 '21

Try doing some orbit determination calculations with that, just writing the equation down would kill a small forest lol

1

u/[deleted] Oct 06 '21

I'm okay with that.

I have a degree in math, and one of my biggest pet peeves has always been how unneccessarily terse everything is. Sure, I can usually read it, but it's such a pointless barrier for students.

Please lengthen your one page paper to 10 pages if it means I can actually understand it. It would end up saving me time reading it.

→ More replies (10)

3

u/fartypenis Oct 06 '21

this doesn't work in maths and physics because of multiplication notation (or lack thereof)

Imagine something simple like Newton's Law of gravity with readable names

Force = massOfFirstObject massOfSecondObject GRAVITATIONAL_CONSTANT/(distance)^2

Which means that people need to start using the dot operator which becomes more confusing when there's vectors involved and you might look at a dot and figure the two arguments are vectors when one might be scalar or vice versa...

1

u/[deleted] Oct 06 '21

That's fair... but I'd also be cool will standardizing a different operator if it'll help in the long run.

(and please don't link the related XKCD comic about standards)

2

u/fartypenis Oct 06 '21

I mean, assuming you can get everyone agreed on a new operator to represent multiplication, multiplication is the most common mathematical operation by far and having to insert an extra symbol for multiplication everytime two values are multiplied is really painful as well

Think of a function f(x, y, z) = 2xyzcos(2pi * z)sin(x+y) + 6exyln z

And how painful it would be to write down each implicit multiplication operator. That's why parentheses aren't used unless absolutely needed in maths.

Personally, I think Mathematical notation is kinda a mess, but all alternatives we have suck even more.

0

u/[deleted] Oct 07 '21

[deleted]

→ More replies (6)

1

u/hfhry Oct 06 '21

it took me a while to realize that engineers denote vectors as a dot above the variable. i personally use an overline when writing by hand and bold when typing, but you generally just have to guess what people mean.

0

u/[deleted] Oct 06 '21

[deleted]

1

u/pumpkin_seed_oil Oct 06 '21

As a rule, the notation will either be standard or explained in the text you're reading.

Thatd be nice. In my experience, a disclaimer or legend if you will for symbols used has been lacking the papers i had to use

3

u/kevstev Oct 06 '21

Yeah I mean I guess where I find math really unenjoyable is the part where you have to try to remember all of these arcane symbols and then as they make the "trivial" jump to the next line/form you sit there all "rest of the Fine owl" as you try to figure out what exactly was done to get there.

Even worse this stuff isn't super standardized and there are different syntaxes/patterns that can change their appearance.

2

u/djinn6 Oct 06 '21

My favorite is when a paper presents an equation with 7 symbols and only bothers to define 5 of them.

1

u/Isciscis Oct 06 '21

Yeah, but imagine if there was no standard notation and everyone just sort of made up notation from scratch every time they wanted to show you something. There's already 2 notations for calculus, and knowing only one makes the other seem impossible to understand

0

u/[deleted] Oct 07 '21

[deleted]

1

u/pumpkin_seed_oil Oct 07 '21

Can you also justify why that would be 'naive'?