Exceptions

exception rootfinding.NotABracketError

Bases: ValueError

Exception raised by bisect() when the interval passed as bracket does not actually contain a root.

f_interval

Values of the f at the endpoints of the interval that is not a bracket.

Type

sequence of two floats

function_calls

Number of calls to f.

Type

int

exception rootfinding.IterationLimitReached

Bases: RuntimeError

Exception raised when a function in this module does not finish within the specified maximum number of iterations.

interval

Working interval at the time the iteration limit was reached.

Type

sequence of two floats

f_interval

Values of the f at the endpoints of interval.

Type

sequence of two floats

function_calls

Number of calls to f.

Type

int