It's common from school-level and college-level algebra exercises (although x
and y
had their part to play, there, too :-)
Also, if I remember correctly, the early programming languages (like early versions of FORTRAN
) used variable naming in a way where initial letters were significant, and this may have had a part to play. For example, as this page says:
A FORTRAN variable is a way of
referring to a cell of the computer.
Names for variables must conform to
the following rules:
- The name may be from one to six characters.
- The first character must be a letter.
- Characters other than the first may be letters or numeric digits.
- If the first character is I, J, K, L, M or N, the variable is integer
(i.e. can hold a whole number value).
Otherwise, it is real (i.e. can hold a
value according to the floating point
convention).