10 Oct
2011
10 Oct
'11
3:56 p.m.
When evaluating a limit, one does not simply substitute the limiting value into the expression. The limit is the value of the expression as the variable gets arbitrarily close but not equal to the limiting value. As x gets arbitrarily close to 0, 0/x remains exactly 0. I have no clue, how this impacts the original issue.
Just to say that the mathematical definition of 0/0 is irrelevant in this context - the point is that if both ends of the range are zero - then our root finding has converged. The evaluation of 0/0 in this code was a mistake, pure and simple. John.