Answered step by step
Verified Expert Solution
Link Copied!

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 =-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;
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 18th International Conference Dasfaa 2013 Wuhan China April 22 25 2013 Proceedings Part 2 Lncs 7826

Authors: Weiyi Meng ,Ling Feng ,Stephane Bressan ,Werner Winiwarter ,Wei Song

2013th Edition

3642374492, 978-3642374494

More Books

Students also viewed these Databases questions

Question

8. Do the organizations fringe benefits reflect diversity?

Answered: 1 week ago

Question

7. Do the organizations social activities reflect diversity?

Answered: 1 week ago