{ } Raw JSON

bundles / scipy 1.18.0 / scipy / optimize / _zeros / _ridder

built-in

scipy.optimize._zeros:_ridder

Signature

built-in_ridder(f, a, b, xtol, rtol, maxiter, args, full_output, disp)

Summary

Find a root of f in [a, b] using Ridder's method.

Parameters

f : callable

Python function returning a float.

a : float

Left bracket endpoint.

b : float

Right bracket endpoint.

xtol : float

Absolute tolerance. Must be >= 0.

rtol : float

Relative tolerance.

maxiter : int

Maximum number of iterations. Must be >= 0.

args : tuple

Extra arguments passed to f.

full_output : int

Non-zero to return detailed results.

disp : int, optional

Non-zero to raise RuntimeError on convergence failure.

Returns

: If full_output is 0: root (float)
: If full_output != 0: (root, funcalls, iterations, flag)

Aliases

  • scipy.optimize._zeros._ridder