subject

Write a MATLAB function, called bisection_method that inputs a function f, two numbers a, b, an error tolerance, tol, and a maximum number of iterations, N, and finds a root c of f in the interval [a, b] using the bisection method. Your function should compute a bound on the error, and stop when the error is less than the tolerance, or if the number of iterations exceeds N - whichever happens first. • Hint #1: The function should start with the line function [c, n,err] = bisection_method(f, a,b, tol, N)
• Hint #2: The function should contain a ‘while’ loop, looking something like: while err > tol && n < N
c) Use the code that you developed in Problem 2 to solve f(x)-(2t3 + 3x-1) cos(x)-x 0 in [-1, 1, for an accuracy of 10
i. What is the number, n of iterations used?
ii. What is the error bound?
iii. What is the expected rate of convergence?
iv. Plot on the same graph the function f and the axis y 0.
v. Using the built-in function solve from Matlab, compute the exact root and compare to your solution

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:30
What “old fashioned” features of checking accounts is p2p replacing
Answers: 3
question
Computers and Technology, 22.06.2019 11:10
Look at the far left lane in the picture. explain what the red car is doing and what it needs to do to travel safely.
Answers: 2
question
Computers and Technology, 23.06.2019 04:00
In a word processing program, such as microsoft word, which feature to you choose the desired picture enhancement?
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
How would you cite different books by the same author on the works cited page? moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. moore, jack h. ballads in poetry – a critical review. dallas: garden books, 1962. print. moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. –––. ballads in poetry – a critical review. dallas: garden books, 1962. print. moore, jack h. ballads in poetry – a critical review. dallas: garden books, 1962. print. moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. moore, jack h. ballads in poetry – a critical review. dallas: garden books, 1962. print. –––. folk songs and ballads. salem: poetry press, 1999. print.
Answers: 2
You know the right answer?
Write a MATLAB function, called bisection_method that inputs a function f, two numbers a, b, an erro...
Questions
question
Mathematics, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
English, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Social Studies, 14.09.2020 21:01
question
English, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Social Studies, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Chemistry, 14.09.2020 21:01
question
English, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Chemistry, 14.09.2020 21:01
question
Geography, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
Questions on the website: 13722367