Question: Numerical analysis, g(x) = cos(x) (b) Write a Matlab function that performs the fixed point iteration. Your function should have the form xhist fixedpoint (g.xo,
Numerical analysis, g(x) = cos(x)


(b) Write a Matlab function that performs the fixed point iteration. Your function should have the form xhist fixedpoint (g.xo, tol, kmax) where g is a function handle that evaluates g(x) for a given r, x0 is your initial guess, tol is the stopping tolerance, and kmax is the maximum number of iterations
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
