<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jan 23, 2015 at 9:59 AM, Paul Moore <span dir="ltr"><<a href="mailto:p.f.moore@gmail.com" target="_blank">p.f.moore@gmail.com</a>></span> wrote: <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Guido's example of Newton iteration is a good use case (although most<br>
of the time I'd expect to use a prebuilt function from a module,<br>
rather than build it myself with Newton iteration, but maybe that just<br>
reflects the fact that I don't do numerical programming).<br></blockquote><div><br></div><div>Well duh. Any algorithm that isn't already in the math module would require way too much code. The point of the example is that most people have probably seen that algorithm before, and it's only one simple step, really, so they won't be distracted by trying to understand the algorithm when the point of the example is to show how you would use is_close_to(). (And it's one of the simplest algorithms that gives an *approximation*, not an exact answer, at least not in the mathematical sense, which is also important in this case -- if the algorithm was exact there would be no need to use is_close_to().)<br></div><div> </div></div>-- <br><div class="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)</div>
</div></div>