first_bracket

Function first_bracket 

Source
pub fn first_bracket<F>(
    f: &F,
    bounds: &Bounds,
    window_size: f64,
) -> Option<Bounds>
where F: RealFnEval,
Expand description

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.