NDSolve::svnder NDSolveValue::svnder ParametricNDSolve::svnder ParametricNDSolveValue::svnder
范例
基本范例 (2)
The highest-order derivatives cannot be set with WhenEvent directly:
As the message indicates, Method{"EquationSimplification""Residual"} is an alternative:
In some cases, Method{"EquationSimplification""Residual"} is an not an alternative. Consider this system:
One way to modify the actual equations is to make use of DiscreteVariables to switch on or off components of the overarching equation:
A simpler way to proceed is to have NDSolve automatically insert the WhenEvent: