this post was submitted on 18 Jul 2023
267 points (91.8% liked)

math

818 readers
3 users here now

General community for all things mathematics on @lemmy.world

Submit link and text posts about anything at all related to mathematics.

Questions about mathematical topics are allowed, but NO HOMEWORK HELP. Communities for general math and homework help should be firmly delineated just as they were on reddit.

founded 1 year ago
MODERATORS
mrh
 
you are viewing a single comment's thread
view the rest of the comments
[–] hark 6 points 1 year ago (2 children)

Single-letter constant/variable names are strongly discouraged in programming but standard in math.

[–] StarManta 6 points 1 year ago

Math standard practices were created at a time when everyone was doing them by hand. Absolutely no one would write out “coefficient of gravity” or whatever 20 times by hand while trying to solve a physics equation.

Single letter variable names were common in early programming for basically the same reason, only with typing.

Ever since the proliferation of autocomplete and intellisense in programming IDE’s, typing a 4-word-long variable name has become a few key letters and then hitting tab. Ever since then, code readability has trumped the desire to type out fewer letters.

[–] [email protected] 2 points 1 year ago (1 children)

Complicated math generally contains a lot more explicit definitions of the variables involved, either in English or with previously established notation. Writing proofs is more about communicating the result than it is proving it. In that sense it is similar to programming with an emphasis on maintainability.

[–] beefcat 0 points 1 year ago (1 children)

Sure, the variables have explicit definitions somewhere, but it still requires you to go back and reference them every time you forget what y stood for.

With more verbose identifiers like in code, you don't need these reminders. The cognitive load is reduced, because you no longer need to hold a table in your head that correlates these random letters with their definitions.

[–] [email protected] 1 points 1 year ago

I assure you the cognitive load would not be reduced. It would just be less readable.