Question: plz add comments / notes so I can understand the code 2. Write a MATLAB function, called fixed point_iteration that inputs a function, g, an

 plz add comments / notes so I can understand the code

plz add comments / notes so I can understand the code

2. Write a MATLAB function, called fixed point_iteration that inputs a function, g, an initial guess ro, an error tolerance, tol, and a maximum number of iterations, N, and outputs the fixed point of g, obtained using the fixed point iteration, starting with ro Your function should have an error defined by E In -1, and stop when the error is less than the tolerance, or if the number of iterations exceeds N - whichever happens first. Your function header should look something like: function [c,n,err] fixed-point-iteration (g,x8,tol,N) = to find the solution to the equationwith an Use the code you developed accuracy of 10-10 for a e [-1, 1]. State your initial guess, and how many iterations it took

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!