% MotionGenesis file: MGSolve2ndOrderODE.txt % Copyright(c) 2009-2026 MotionGenesis LLC. All rights reserved. %--------------------------------------------------------------- Variable x'' = cos(2*t) + sin(x) %--------------------------------------------------------------- % Set initial values for variables. Input x = 1 m, x' = 0.2 m/s %--------------------------------------------------------------- % List output quantities (for ODE command and plotting). OutputPlot t seconds, x meters %--------------------------------------------------------------- % Set numerical integration parameters. Input tFinal = 20 sec, tStep = 0.1 sec, absError = 1.0E-07 %--------------------------------------------------------------- % Solve ODEs and plot data file MGSolve2ndOrderODE.1 ODE() MGSolve2ndOrderODE ODE() MGSolve2ndOrderODE.m Quit