Question: (b) Create a MATLAB function myFixed Point (g, x0, tol, maxiter) implementing a fixed iteration of the type xn+1 = g(x). The MATLAB function
(b) Create a MATLAB function myFixed Point (g, x0, tol, maxiter) implementing a fixed iteration of the type xn+1 = g(x). The MATLAB function should take as arguments the mathematical function to be iterated g, the initial guess x0, the required tolerance tol and a parameter specifying the maximum number of iterations allowed. The function should return a list [xn, errn] of two lists containing all values of the iterates (xn, n = 0,...} and the error measured {en = |xnxn-11, n = 0,...), respectively, computed at 3/4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
