Long variable names: Difference between revisions
From Why start at x, y, z
(Created page with "Mathematicians normally stick to single-letter variable names. But when they don't, it can be hard to tell if there's a missing multiplication symbol or not. Some people...") |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:Ambiguities]] | |||
[[Category:Unpleasantness]] | |||
Mathematicians normally stick to single-letter variable names. But when they don't, it can be hard to tell if there's a [[missing multiplication symbol]] or not. | Mathematicians normally stick to single-letter variable names. But when they don't, it can be hard to tell if there's a [[missing multiplication symbol]] or not. | ||
Revision as of 08:52, 2 July 2021
Mathematicians normally stick to single-letter variable names. But when they don't, it can be hard to tell if there's a missing multiplication symbol or not.
Some people use an upright font for long variable names to distinguish them from single-letter variable names, drawn in italics (see Use of different typefaces to convey meaning)
Examples
\[ speed = distance \div time \]
\[ \text{speed} = \text{distance} \div \text{time} \]
Is it OK to mix single-letter variable names and longer ones?
\[ x \text{speed} \]