Boost logo

Boost Users :

Subject: Re: [Boost-users] math tools roots
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-10-10 11:56:09


> 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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net