num_opt::physics::solver

Function find_root_bisection

Source
pub fn find_root_bisection<T: MyFloat>(
    a: &T,
    b: &T,
    f: impl Fn(&T) -> T,
    epsilon: Fpt,
) -> Option<T>