pub fn tolerance_reached(tol: f64, residue_norm: f64, b_norm: f64) -> bool