https://danielstyles.co.uk/understanding-variable-inline-discrete-math/