# File eulers_method.ode # Figure 2.7 Numerical Simulation by Euler's Method # equation a'=-a #initial condition init a=1 # final time @ total=2 # set the simulation method: @ method=euler # set the stepsize: @ dt=0.33 # set the plotting window size: @ xlo=0, xhi=2, ylo=0, yhi=1 # run the simulation in the GUI by selecting Initialconds|(G)o # the other curves can be generated with stepsizes dt=0.67 or dt=0.01 # the stepsize can be changed in the GUI by selecting nUmerics|Dt done