Question: Problem One: Consider the following function that has two real roots in the interval -2 and 1.5, f(x) = 0.1x3 - 5x2 - x +
Problem One: Consider the following function that has two real roots in the interval -2 and 1.5, f(x) = 0.1x3 - 5x2 - x + e** + 4 a) Plot the function in the defined interval using fplot, and graphically locate the two roots. b) Starting from bracketing initial guesses, solve for the +ve root of the function using the bisection method. Show three complete iterations and calculate the absolute percent relative errors, leal c) Starting from bracketing initial guesses, solve for the -ve root of the function using the false position method. Show three complete iterations and calculate the absolute percent relative errors, leal d) Write a simple MATLAB script to solve for the +ve root using the bisection method with 10 iterations. Use for structure. Report the results of each iteration in a formatted table. e) Write a simple MATLAB script to solve for the -ve root using the false-position method with an accuracy of sal = 0.05%. Report the results of each iteration in a formatted table. f) Solve for the +ve root by calling the bisect function with an accuracy of 10 significant figures. g) Solve for the-ve root by calling the falsepos function. Report the root and error after 8 iterations
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
