By using MATLAB code answer parts (a,b,c,d) Suppose one invests $500 per month f
ID: 3887339 • Letter: B
Question
By using MATLAB code answer parts (a,b,c,d)
Suppose one invests $500 per month for 5 years. If the desired total amount after 5 years were $60,000, then the required annual interest rate I could be determined by the following equation: 2) 60 500 -I 60.000 11121(. , 12) a) First, rewrite the equation in the form f(I)-0, where f(I) is a polynomial. b) Write and run a script m-file, called newtl.m, that performs Newton's Method. Use this script to find an estimate for I. Your script will call two function m-files, fnewt.m and fpnewt.m, which are a relevant function f() and its derivative, respectively. Use initial guess x 2, and run the loop until the relative error estimate for the latest root estimate,xis less than a 141 tolerance (TOL) of 10 Store all iterates in a vector, and display this vector as a column. c Now, modify newtl m to a new script, newt.m, by adding lines to compute the ratios e/e, and e(e) for each iteration. Use your final estimate from part (a) (all 16 digits) for the exact root in the errors. Store each of these ratios in 2 vectors and display the ratios for all i as column vectors. Use the same initial guess x2 Do these ratios indicate whether this is a simple or multiple root? If so, state which one and why What are the estimated rate and order of convergence for the root? d) Using only the first 3 significant digits of your final root estimate from part (a), also theoretically determine whether or not this is a simple root. Does this confirm your results from part (b)?Explanation / Answer
Set the polynomial equal to yy to find the properties of the parabola.
y=2x28x+9y=2x2-8x+9
Complete the square on the right side of the equation.
Tap for more steps...
2(x2)2+12x-22+1
Reorder the right side of the equation to match the vertex form of a parabola.
y=2(x2)2+1y=2x-22+1
Use the vertex form, y=a(xh)2+ky=ax-h2+k, to determine the values of aa, hh, and kk.
a=2a=2
h=2h=2
k=1k=1
Find the vertex (h,k)h,k.
(2,1)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.