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: callablePython function returning a float.
a: floatLeft bracket endpoint.
b: floatRight bracket endpoint.
xtol: floatAbsolute tolerance. Must be >= 0.
rtol: floatRelative tolerance.
maxiter: intMaximum number of iterations. Must be >= 0.
args: tupleExtra arguments passed to f.
full_output: intNon-zero to return detailed results.
disp: int, optionalNon-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