Mathematics Numerical computing
[Numerical computing] Examples of Newton’s method failing to converge in Python (Rewritten from an earlier blog post)
Reproduce three failures of Newton’s method in Python: iterates that alternate between zero and one, iterates whose absolute values double, and an update blocked by a zero derivative. Explain each with update formulas and plots. Compare different starting points and Brent’s method, checking residuals and stopping reasons as well as final values.
