Homework due September 3, 2002
It is recommended that you use Matlab for the programming components of your homework throughout the semester. Therefore, this homework assignment was developed to ensure you know how to program in Matlab. Hand in your Matlab code for both problems, and please condense it onto as few pieces of paper as possible.
Find the largest root of f(x)=x6-x-1using the initial estimate x=2. Hand in a plot of x vs. f(x) and clearly indicate the value of the largest root to 9 decimal places.
Find all roots of
f(x)=-4+x(9.1389+x(-5.56+x)) using
initial estimates
(i.e.
you will input 401 initial estimates), and
tol
.
Use subplot to
put a graph of f(x) vs. x `on top of' a graph of root vs.
initial estimates.
Hand in this graph, clearly indicating the values of all roots
to 9 decimal places, and describe
the graph of root vs. initial estimates.
Graduate Students