Reduce repeated math operations while limiting number of extra variables being carried around.
Reduce repeated math operations while limiting number of extra variables being carried around.

simpeg/simpeg