Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need Published Solution using MATLAB One method for finding a root of a function is the bisection method. Here is a nice writeup on the

Need Published Solution using MATLAB

One method for finding a root of a function is the bisection method. Here is a nice writeup on the bisection method: http://www.mathwarehouse.com/calculus/continuity/continuity-bisection-method.php (Links to an external site.)Links to an external site.

Write a function bisect( ) that finds the root of a polynomial ax3+bx2+cx+d over an interval [A,B]. The function takes as input the coefficients a, b, c, d, and the interval limits A and B. The function returns as output the value of the root over the interval [A,B], if it exists. The function also returns as output a message (flag) that informs the user if no roots exist over the interval [A,B]. It should be clear that you cannot use any of MATLAB's built-in root finding functions to do this problem. Use the bisection method.

a = -1;

b = 1;

c = -1;

d = 10;

A = 0;

B = 5;

[root,flag] = bisect(a,b,c,d,A,B)

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

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions