Course Solutions Uncategorized (Solved) : 2 Write Matlab Function Called Fixedpointiteration Inputs Function G Initial Guess O Error Q26369637 . . . .

(Solved) : 2 Write Matlab Function Called Fixedpointiteration Inputs Function G Initial Guess O Error Q26369637 . . . .

 

2. Write a MATLAB function, called fixed_point_iteration that inputs a function, g, an initial guess o, 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 zo. Your function should have an error defined by E -xn - Xn-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,x0,tol,N) = Use the code you developed in Problem 4 to find the solution to the equation x = e-x, with an accuracy of 10-10 for x E(-1,1]. State your initial guess, and how many iterations it took.

2.

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post