Reduced the tolerance on the regula falsi
This commit is contained in:
@@ -71,7 +71,7 @@ where
|
|||||||
let test_y = self.integrator.step(&self.ode, test_t).0;
|
let test_y = self.integrator.step(&self.ode, test_t).0;
|
||||||
(callback.event)(self.ode.t + test_t, test_y, &self.ode.params)
|
(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;
|
step = root;
|
||||||
(new_y, _, dense_option) = self.integrator.step(&self.ode, step);
|
(new_y, _, dense_option) = self.integrator.step(&self.ode, step);
|
||||||
(callback.effect)(&mut self.ode);
|
(callback.effect)(&mut self.ode);
|
||||||
|
|||||||
Reference in New Issue
Block a user