pub fn brent_root_find<F>(
f: F,
a: f64,
b: f64,
x_tolerance: f64,
max_iterations: usize,
) -> Result<AngleResult, String>Expand description
Brent’s method for root finding - optimized implementation.
x_tolerance is an absolute tolerance in the same units as a and b.
AngleResult::final_error reports |f(x)| in the function’s output units.