Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In the tutorial, a MATLAB function (Root_bisection) is provided for the bisection method. Write a MATLAB code called Root_falseposition that finds a root of a

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

In the tutorial, a MATLAB function (Root_bisection) is provided for the bisection method. Write a MATLAB code called Root_falseposition that finds a root of a function using the false position method - Input parameters are (1) the name of the function, (2) the initial limits for the bracketing interval, and (3) the value of the target relative - Output is the value of the root (x), and the number of iterations required to reach the target relative error. - The function prints out the intermediate root approximations and corresponding relative error estimate. Note: Attach the MATLAB code to the .pdf report. Sub-question 4(2%24) a) Use plotfunc to produce a plot that clearly shows all six roots of the following function: f(x)=62501x6250007x5+100057x4251x3100333x2+2526x+21.24 Note: Attach the plot and the roots (using roots() built-in MATLAB function) of the final attempt to the .pdf report. b) Find the six roots using both the Bisection Method, learned in tutorial, and the False Position Method multiple times. Use a tolerance for the approximate relative error s=1104, and express your answers (of the roots) up to three decimal places. For the first root use the following interval {1001663,25531} For the second root use the following interval {50317,541} .,.. For the third root use the following interval {2047,411} {100247,2581}{50399,551} For the sixth root use the following interval {50661,50841} Note: You can compare your results with the MATLAB function roots() . Sub-question 5(10%) Analyze the results of the previous question and comment on the convergence rate and sensitivity to initial guesses for each of the methods. Note: Attach your answer to the .pdf report

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

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

More Books

Students also viewed these Databases questions