Reduced the tolerance on the regula falsi

This commit is contained in:
Connor Johnstone
2023-10-16 14:18:19 -06:00
parent 9d82f92c07
commit a819724292

View File

@@ -71,7 +71,7 @@ where
let test_y = self.integrator.step(&self.ode, test_t).0;
(callback.event)(self.ode.t + test_t, test_y, &self.ode.params)
};
let root = find_root_regula_falsi(0.0, step, &f, &mut 1e-12).unwrap();
let root = find_root_regula_falsi(0.0, step, &f, &mut 1e-8).unwrap();
step = root;
(new_y, _, dense_option) = self.integrator.step(&self.ode, step);
(callback.effect)(&mut self.ode);