Question: function [ root , err _ approx,iter ] = fixpoint ( g , x 0 , err _ stop,maxiter ) where you are solving .
function rooterrapprox,iter fixpointgxerrstop,maxiter
where you are solving
Consider the following function:
Write a script that uses the fixpoint function to estimate the root of the function, the approximate relative percent error, and the number of iterations needed. Start with initial guess and continue until the approximate relative percent error falls below
Requirements:
Create an anonymous function you will use to solve this problem.
Assign the variable root to the solution of the problem.
Assign the variable errapprox to the approximate relative percent error after the solution is found.
Assign the variable iter to the number of iterations needed until the error fell below the threshold.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
