Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 ;
ug ;
tol e;
This calls your funciton and has it solve for the zeros of a random test function named fundefined below
rootvec, errorsvec bisect@fun lg ug tol
This is just a random example function to test your code. This is not the RocketFunction you will use to run your code.
function y funx
A ;
B ;
C ;
y AxBxC;
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