There is an unnecessary var being used in the geometric equation, I've removed it and tidied up the code. Note there are tests to cover the geometric equation, them passing helps prove it's the same equation with this var removed.
Here is some handwritten maths explaining why the max need not live at the top and bottom of the fraction, it just cancels out. I start with what we used to have and finish with what this PR changes to.
There is an unnecessary var being used in the geometric equation, I've removed it and tidied up the code. Note there are tests to cover the geometric equation, them passing helps prove it's the same equation with this var removed.
Here is some handwritten maths explaining why the
max
need not live at the top and bottom of the fraction, it just cancels out. I start with what we used to have and finish with what this PR changes to.