Updated maths
Revert 823499e..0ef4372

This rolls back to commit 823499e8f2a5a241f701ea8b9f1f6b674432e67e.
Revert 0ef4372..6995b61

This rolls back to commit 0ef43728bca8b1f14cf01caf646a25670029cdb0.