You could also use pr6ftaylor.m to evaluate fun(x) using a Taylor polynomial. To use it, type [xc yc errx]=newton1dr("pr6ftaylor","pr6fpr",0,1.e-11,20,2)
A Matlab program
bisectionf.m to solve ff(x)=0 by bisection
recommend right-clicking on the above link and saving it to your
computer's hard drive. Then, open MATLAB or OCTAVE and navigate
to the directory where you saved euler.m. (If it is in
c:\myprogs, you could type cd c:\myprogs . To use
this, you will also need to write a function, which you could call
myfun.m to evaluate the function f(x,y).
You could then invoke
euler.m by typing [X,Y]=euler('myfun',a,b,y0,n); (after defining a, b,
y0 and n; if y(0)=1 and you want to find y(2), you could type
[x,y]=euler('myfun',0,2,1,16) at the Matlab command prompt.
You could also use euler_f_results.m
to call euler.m. To run euler_f_results.m, you could
type yres=euler_f_results('myfun',0,1,1,2,13) at the Mablab (or
Octave) command prompt.
A spreadsheet heuns_method.xls to solve dy/dx=f(x,y), y(x_0)=y_0 by Euler's method and by Heun's method, with Richardson extrapolation
A spreadsheet that can be used to
solve f(x,y)=0 and g(x,y)=0 using Newton's method (in .xls format)
Information about storing floating point numbers: IEEE 754-1985
(recommended reading); IEEE 754-2008
Octave tutorials: How to get started (in pdf format); this consists of extracts from Introduction to Octave (in pdf format)
Note: To view or print out pdf files, you may need the Adobe Acrobat reader, which you may download for free if you don't have it yet by clicking here.
Programs to test floating point arithmetic
**Current and future Master's level Math courses offered at Salem State University
Professor Rosenthal's home page
My favorite Web sites (including a map of Salem State University and a link to MBTA schedules for routes serving Salem)
Home page for Mathematics
at Salem State University or Salem
State University or ***Graduate
Math programs at Salem State University or Graduate
programs in general at Salem State University
Specific Information on Master of Science
in Mathematics or Master
of Arts in Teaching (MAT) Mathematics programs at Salem State
Afterwards, click "Back" to go back to this page.
To send me e-mail, click on email@example.com