This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / optimize / _zeros / _bisect

built-in

scipy.optimize._zeros:_bisect

Signature

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

Summary

Find a root of f in [a, b] using bisection.

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