stepsize_answers
Matlab:
-
adapt0.m,
a framework code that we will use to develop adapt1.m, adapt2.m, and adapt3.m.
-
adapt1.m,
cuts stepsize in half on bad errors.
-
adapt2.m,
doubles or halves stepsize based on error.
-
adapt3.m,
adjusts stepsize by a factor based on error.
-
expsin_adapt0.m,
solve EXPSIN ODE using adapt0.
-
expsin_adapt1.m,
solve EXPSIN ODE using adapt1.
-
expsin_adapt2.m,
solve EXPSIN ODE using adapt2.
-
expsin_adapt3.m,
solve EXPSIN ODE using adapt3.
-
expsin_deriv.m,
the right hand side of the EXPSIN ODE.
-
expsin_solution.m,
the exact solution of the EXPSIN ODE.
-
rk1.m,
the Euler method, written as a Runge Kutta ODE solver.
-
rms.m,
evaluates the root-mean-square norm of a vector.
-
stiff_adapt3.m,
solve STIFF ODE using adapt3.
-
stiff_deriv.m,
the right hand side of the STIFF ODE.
-
stiff_solution.m,
the exact solution of the STIFF ODE.
Images:
Last revised on 22 October 2020.