Removed a println

This commit is contained in:
Connor Johnstone
2023-03-15 17:37:54 -06:00
parent 98ea87adcb
commit 85755cf31c
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,8 @@ and field line tracing:
## To Use
For now, here is a simple example of using the propagator to solve a simple system:
For now, here is a simple example of using the propagator to solve a simple second-order system (the
pendulum problem):
```rust
use nalgebra::Vector2;

View File

@@ -55,7 +55,6 @@ where
if self.callbacks.len() > 0 {
// Check for events occurring
for callback in &self.callbacks {
println!("{}", (callback.event)(self.ode.t, self.ode.y, &self.ode.params) * (callback.event)(self.ode.t + step, new_y, &self.ode.params));
if (callback.event)(self.ode.t, self.ode.y, &self.ode.params) * (callback.event)(self.ode.t + step, new_y, &self.ode.params) < 0.0 {
// If the event crossed zero, then find the root
let f = |test_t| {