Now that I'm older and wiser I think the whole thing is a waste of time and a perfect example of cargo culting. The current maths notation was largely invented by Euler so he could write to his contemporaries with parchment and quill, e.g. https://www.themorgan.org/blog/all-math-nerds-out-there
That we are still using his notation three centuries later on computers is both astonishing and saddening.
It's much better to use a sane and consistent notation that can be entered as ascii in the first place (or Unicode if you hate long names), viz. s-expressions.
| TeX | S-Expression |
|--------------+-------------------------------|
| 1 + 2 | (+ 1 2) |
| 1 - 2 | (- 1 2) |
| 1 \times 2 | (* 1 2) |
| frac{1}{2} | (/ 1 2) |
| a_i | (map a (range 0 n)) |
| \sum_i a_i | (apply + (map a (range 0 n))) |
| \int x^2, dx | (integrate '(expt x 2) 'x) |
Not only are the expressions consistent between all the normal
mathematical operators, they force you to think about what you're
doing. E.g. a sequence is a function from the nats to whatever objects
you are enumerating and an indefinite integral is a symbolic operation
- not a numerical one like the definite integral - both of those are
something that everyone is aware of, the same way they are aware of a
"Wet Paint" sign on a bench before they sit down.