Question
4.) Bi-Section Method Find the roots of f(x) = x 2 100 using the Bi-Section Method. (a)Create a Matlab function MyBiSectionMethod.m that returns the final
4.) Bi-Section Method Find the roots of f(x) = x2 100 using the Bi-Section Method.
(a)Create a Matlab function MyBiSectionMethod.m that returns the final value of x and requires as an input only a lower bound, an upper bound, and the total number of iterations N. Please use only a for-loop to solve this problem.
(b)Write a Matlab Script entitled ExecuteMyBiSectionMethod.m that executes MyBiSectionMethod.m with xlow= 0, xup= 20, and N = 1000.
(c)Write a Matlab Script entitled ExecuteMyBiSectionMethod2.m that executes MyBiSectionMethod.m with xlow= 0, xup= 20, but also plots at the end of the program the evolution of x with increasing number of iterations(i.e. plot the value of x in a Matlab plot vs the iteration step).
Please answer all parts of the question.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started