I'm sure we're all familiar with PEP 8, and its specification for line length. Unfortunately, mathematics exists.
I am trying to write REALLY long equations in Python (Trig, Surface area of complex shapes, etc.) and I would like to be able to retain clarity in my formulas without breaking up my lines too much.
For example, this formula is pretty long, and might be indented many times in my code, leaving me not much room to work with:
slantHeight = ((math.sqrt(((baseSideLength/2) * (baseSideLength/2)) + heightSquared))
What's the recommended way to break up this line?