Question: By using MATLAB code answer parts (a,b,c,d) It is newt1.m Suppose one invests $500 per month for 5 years. If the desired total amount after

By using MATLAB code answer parts (a,b,c,d)

It is newt1.m By using MATLAB code answer parts (a,b,c,d) It is newt1.m Suppose one

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)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!