3 ms·
It's true, especially for papers about algorithms. But if you need to do complicated calculations, math notation is useful; compactness does help you keep every
by yummyfajitas 18y ago
It's true, especially for papers about algorithms. But if you need to do complicated calculations, math notation is useful; compactness does help you keep everything in your head.
Most fields standardize notation quickly, and conventions helps also. In a physics paper, $\rho$ is a density and $\psi$ a wavefunction. Any author who gratuitously forks notation deserves to be rejected (with instructions to fix the notation).
As for "too many subscripts", I'm not sure how other notation could fix it. That's just a problem coming from nested loops (sums, integrals, whatever): if you can't get rid of them, what can you do? Is
∑_x ∑_y f(x,y)
worse than
tmp = 0
for x = ... :
for y = ...:
tmp += f(x,y)
return tmp
- andreyf 18y agoI agree, but the last part (assuming you meant to write in Python), could be written as: sum(f(x,y) for x in X for y in Y) ...which, ironically, is syntax inspired by mathematical notation :)