I'd love if all the formulas on Wikipedia were written as pseudo code with meaningful variable names. I'd understand them so much faster.
I don't think that's possible for most of them. Quite a few formulas aren't equivalent to any one program, and most variables don't have a fixed meaning. Can't really think of one that could be improved by writing it as pseudo code.
Even every proof can be expressed as a program, see Curry–Howard correspondence [1].
> and most variables don't have a fixed meaning.
I think this is kind of the point of the original comment. For a physicist PV=nRT is concise and clear but for everyone else? The letters P, V, n, R, T can have many meanings but in the context of this formula their meaning is fixed. Why not write:
pressure * volume = AVOGADRO * BOLTZMAN * temperature
> Can't really think of one that could be improved by writing it as pseudo code.See example above, but I think it strongly depends on what one is familiar with.
[1] https://en.wikipedia.org/wiki/Curry%E2%80%93Howard_correspon...