The reason e
takes the value 2 is because that's the actual answer:
sqrt(e / (c * (c-1))) / d;
= sqrt(e / (2 * (2 - 1))) / d
= sqrt(e / 2) / d
= sqrt(36858.767828375385 / 2) / d
= sqrt(18429.383914188) / d
= 135.754867 / d
= 135.754867 / 67.877433500000009
= 2
Perhaps you have the wrong formula?
Hope this helps!