Crazy long and difficult-to-track equations are why function abstraction was invented. If this were code, we would say to cut it into understandable chunks, label them as functions, and then compose them.
At least everybody should share some common mathematical instruction from school. The same certainly cannot be said of programming.
As somebody who can read both code and math, though, I'd greatly, greatly prefer to see math in math notation, not code. Code would be so much more verbose that it would take easily twice as long to digest the information. You'd also completely lose all the incredibly powerful visual reasoning that comes along with modern mathematical notation.
Consider how much work Bourbaki had to write before he/they got to real analysis.