% MotionGenesis file: MGSolveODEWithVariousInitialValues.txt %------------------------------------------------------------------------------- Variable y' = cos(t) + sin(y) % Arbitrary ODE. Output t sec, y m, y' m/s % List output quantities (for subsequent ODE command). Input y = 3 m % Set initial value for y (for subsequent ODE command). %------------------------------------------------------------------------------- % Set numerical integration parameters and solve the ODE with initial value y = 3 m. Input tFinal = 5 sec, tStep = 0.02 sec, absError = 1.0E-07 ODE() ODEWithInitialValueA % Solve the ODE and output results. %------------------------------------------------------------------------------- Input y := 0 m % Modify the initial value for y. ODE() ODEWithInitialValueB % Solve the ODE and output results. %------------------------------------------------------------------------------- % Optional: Plot results Plot ODEWithInitialValueA.1 [1,2] ODEWithInitialValueB.1 [1,2] %------------------------------------------------------------------------------- % Record input together with responses. Save MGSolveODEWithVariousInitialValues.html Quit