Numerical Analysis 1 (MATH545) Matlab files etc.
Suggestion for downloading: create folder on your Desktop with a name like "LeMesurier" (but using your name, not mine!) and download to there.
All the following files and more can be seen by going to folder matlab.
That is the place to get the latest Matlab sample files, because I upload each new file to there as soon as I have finished it, before I update this index page.
-
romberg2.m updated Matlab M-file giving a function implementing the Romberg method for integration, with a guaranteed minimum number of extrapolation levels added.
(romberg26.m is a version for Matlab 6.)
-
romberg2run.m is a Matlab M-file script that runs test cases with the above function, updated for version2.
(romberg26run.m is a version for Matlab 6.)
-
newtonmatlab7.m, a new version of newton.m that needs no separate files for the mathematical functions, and
run_newton_matlab6.m, a script to run test cases on this.
-
newtonmatlab6.m, a variant of the above that works with Matlab version 6 and older, by using inline functions, and
newtonmatlab6run.m, script to run test cases on this. As above, no separate files for the mathematical functions.
-
newton.m a function implementing Newton's method, but only crudely.
-
newtonrun.m a Matlab M-file script to run function newton above, using function f1.m and its derivative df1.m.
-
f1.m the function x-cos(x) and df1.m its derivative.
-
newton.m a function implementing Newton's method, but only crudely.
-
euler.m is a Matlab M-file giving a function implementing the Euler method for ODE IVP's
-
modmidpoint.m is a Matlab M-file giving a function implementing the modified midpoint method, one of several methods also called the modified Euler method.
-
eulermmprun.m is a Matlab M-file script that runs test cases with the above two functions for solving ODE IVP's.
-
rkstep.m as described in the handout on an Adaptive Runge-Kutta method.
-
rkfixedstepsize.m as described in the above handout.
-
rkadaptivestepsize.m as described in the above handout.
-
rkadaptivestepsizerun.m, a script for running the above.
Brenton leMesurier, Department of Mathematics, College of Charleston
Alternative home page location, on-campus only: http://lemesurier.cougars.int/~lemesurierb/
Backup home page, may be out of date: http://www.cofc.edu/~math/faculty/lemesurier/
Last revised Thursday March 22, 2007.