Module rootfind::bracket [] [src]

Structs

Bounds

Bounds represents the closed interval [a,b].

BracketGenerator

BracketGenerator iterates over all root-holding brackets. Internally it is making repeated calls to first_bracket until the entire bounds are explored.

Functions

first_bracket

Scans interval [a,b] and emits the first bracket containing a sign change. For a continuous function the Intermediate Value Theorem guarantees that the bracket contains at least one root. Without a continuity guarantee, it might be a singularity instead.

is_sign_change

Whether signs differ, properly handling integer underflow.