Interesting floating-point summation tip [ https://twitter.com/raymondh/status/1301800636866940928 ]:
"Raymond Hettinger @raymondh
#Python floating point ninja tip: Use parentheses to regroup sums to minimize accumulated round-off error.
Instead of:
a + b + c + d + e + f + g + h
Write:
((a + b) + (c + d)) + ((e + f) + (g + h))
Note, the total work is unchanged."
For more on this see [ https://en.wikipedia.org/wiki/Pairwise_summation ]