pub fn algorithm( algorithm: &str, iterations: usize, tolerance: impl Display, ) -> String
Generate an error message for convergence failures