pub fn bisection_interval<F>(
f: F,
interval: Interval<f64>,
options: RootOptions,
) -> Result<f64, RootError>Expand description
Finds a root with the bisection method over a bounded use-interval interval.
Unbounded and empty intervals return RootError::InvalidInterval.
Open endpoints participate in bracketing, but only closed endpoints are
eligible for the immediate endpoint-root fast path.
ยงErrors
Returns RootError::InvalidInterval when the interval is empty,
unbounded, or does not bracket a root; RootError::InvalidTolerance
when the tolerance is not finite and positive;
RootError::NonFiniteValue when a function evaluation is non-finite;
and RootError::MaxIterationsReached when the iteration budget is
exhausted without convergence.