brent_root_find

Function brent_root_find 

Source
pub fn brent_root_find<F>(
    f: F,
    a: f64,
    b: f64,
    tolerance: f64,
    max_iterations: usize,
) -> Result<f64, String>
where F: Fn(f64) -> f64,
Expand description

Brent’s method for root finding (simplified implementation)