Skip to main content

Module halley

Module halley 

Source
Expand description

Halley’s method (SciPy’s newton given fprime2), cubically convergent with the second derivative.

See the book entry Halley’s method and fixed points.

Functions§

halley
Finds a root of f by Halley’s method from x0, as SciPy’s newton with fprime2: the Newton step δ = f/f' is divided by 1 − δ f''/(2f') whenever that correction is below one in magnitude. Stops when successive iterates differ by at most tol (SciPy’s default is 1.48·10⁻⁸) or f(x) is exactly zero; errors on a zero derivative or after 50 iterations. Converges cubically near a simple root.