I have a fairly complex-looking (about 50 chars when typed out) equation that is all basic algebra (*
, /
, +
, -
, ^
). How would I best style it for readability?
Condensed, it looks difficult to read and impossible to understand how I got there, so I'm thinking about putting an expanded form with explanation as comments above the code. This, however, still leaves the "code" bit unintelligible.
Any pointers/suggestions would be appreciated
Few things I follow while using long mathematical expressions:
for example
Edit: To answer the above expression discussed in the comment