Variable naming convention in mathematical modeling. Is there a guide or source of inspiration I can use when picking variable and constant names for a mathematical formula?

Dylan Benitez

Dylan Benitez

Answered question

2022-11-10

Variable naming convention in mathematical modeling
Is there a guide or source of inspiration I can use when picking variable and constant names for a mathematical formula? I'm in the process of converting a poorly written technical document into something cleaner, and I'm faced with garbage like this:
H W P _ c u r x = C u t _ c u r × t = 0 r u ( y r _ c u r s t a r t _ d a t e F r e q _ c u r x ) f ( D e c a y _ c u r x ; y r _ c u r s t a r t _ d a t e x )
I have a background in scientific computing, so I can appreciate an elegantly constructed formula, but I've always wondered how a good mathematician would choose variable names.

Answer & Explanation

Marshall Flowers

Marshall Flowers

Beginner2022-11-11Added 20 answers

Step 1
If you're going to introduce single-letter variable names, it's important that (a) you only do it when it really will make the expression clearer, and (b) you provide full explanations for what your variables are? For example:
Let
τ = year start date f = f r e q u e n c y r = ...description of what ru is T = r τ / f d = d e c a y
then
H W P = c u t × t = 0 T f ( d ; τ )
Step 2
Here I followed the common convention of using t-like variables (t, T, τ) to represent times and f to represent a frequency. For the other variables I used the first letter of their names.
Note that this equation doesn't really make sense - the dummy variable in the summation is t, but t doesn't appear anywhere in the summand. That should be fixed.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?