Ordinary Differential Equations Solve Blocks |
Odesolve([vector], x, b, [step]) Returns a function(s) of x that is the solution to the single ODE provided in a solve block, subject to either initial value or boundary value constraints. The ODE must be linear in its highest derivative term, and the number of initial and boundary conditions must be equal to the order(s) of the ODE(s).
By default, Odesolve uses a fixed-step Runge-Kutta method of solving. To use an adaptive method, right-click on the Odesolve expression and choose Adaptive from the menu. To use a stiff/Radau method, or to solve systems with algebraic constraints, right-click on Odesolve and choose Stiff from the menu.
Odesolve must be used at the end of a Solve Block.
Array subscripts may not be used when naming functions, but literal subscripts are fine.
The universal notes on constructing Solve Blocks apply. Within the body of the block: