Question: Bisection You will need to modify the bisect.m file to take inputs of the function you want to find the roots for ( func )

Bisection You will need to modify the bisect.m file to take inputs of the
function you want to find the roots for (func), the lower bound of the search
(lower guess), the upper bound of your search (upper guess), and the
tolerance you want to find a solution to (tol). The bisect function should
provide a vector of the root calculated during each iteration (root), and a
vector of the error at each iteration (errors). Provide your finished code
in Matlab grader to show your function is working correctly
Once the function script is properly filled out (image) the bottom is the code to call your function however iam unsure it if will need to be modified as well. Please help and explain!
Code to call function
% This is just an example to test if your code runs
lg =-10;
ug =0;
tol =1e-8;
% This calls your funciton and has it solve for the zeros of a random test function named fun1(defined below)
[root_vec, errors_vec]= bisect(@fun1, lg, ug, tol)
% This is just a random example function to test your code. This is not the Rocket_Function you will use to run your code.
function y = fun1(x)
A =1;
B =2;
C =3;
y = A*x4+B*x^2-C;
 Bisection You will need to modify the bisect.m file to take

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!