Question: Using Matlab: In this part of the project we will be using the bisection algbrithm, to search for the solution to a highly nonlinear function.
Using Matlab:



In this part of the project we will be using the bisection algbrithm, to search for the solution to a highly nonlinear function. This will involve a rewrite of the BiSection function. a) Rewrite the function BiSection to be BiSectionSearch. The function will use the bisection algorithm to search for a set of roots. It should do this systematically by applying the BiSection algorithm to a set of overlapping intervals that work through the region of the roots. The function call should be as shown below function roots = Bisectionsearch ( xstart, xstop, xstep, xOverlap, Function ) % Function that uses bisection to search for the roots of f(x) % Inputs: xStart and xStop - the end points of the search. xStep the size of interval used in search. xOverlapthe overlap between intervals. Function - the function to be searched % Outputs: roots - array of roots found in the search. As an example of how the intervals should be set up this is how I started the first interval. The next interval would be x0 x1-xoverlap ; =
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
