Dear Hank,
Last question first: really, only you can say for sure if 4e-281 and
5e-11 are small enough; it depends on the units you measure your state
variables in. However, this strategy cannot get the state variables to
exactly 0. Obviously, you could get closer to 0.0 faster by setting th
I have a new and less distressing, but potentially more interesting,
problem.
I realized the major flaw my old "solution" and now have a solution
that kind of works but is rather inelegant and I think may be
problematic in difficult systems.
Borrowing from the lsoda example again I once again h