User Portlet User Portlet

Discussions
If simple approaches fail you might want to look here. tutorial/NDSolveWhenEvents#1688891301 It takes one to Events and Discontinuities in Differential Equations in the documentation. This tutorial covers event detection, changing state variables,...