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 00:30
Which of the following methods could be considered a “best practice” in terms of informing respondents how their answers to an on-line survey about personal information will be protected? respondents are informed that investigators will try to keep their participation confidential; however, confidentiality cannot be assured. respondents are informed that a research assistant will transfer all the research data to a password-protected computer that is not connected to the internet, via a usb flashdrive. the computer is located in a research team member’s office. the investigator uses the informed consent process to explain her institution’s method for guaranteeing absolute confidentiality of research data. the investigator uses the informed consent process to explain how respondent data will be transmitted from the website to his encrypted database without ever recording respondents’ ip addresses, but explains that on the internet confidentiality cannot be absolutely guaranteed.
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
This chapter lists many ways in which becoming computer literate is beneficial. think about what your life will be like once you’re started in your career. what areas of computing will be most important for you to understand? how would an understanding of computer hardware and software you in working from home, working with groups in other countries and contributing your talents.
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
question
Computers and Technology, 24.06.2019 00:20
Describe a data structures that supports the stack push and pop operations and a third operation findmin, which returns the smallest element in the data structure, all in o(1) worst-case time.
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
Physics, 17.05.2021 23:30
question
Mathematics, 17.05.2021 23:30
question
Mathematics, 17.05.2021 23:30
question
Mathematics, 17.05.2021 23:30
Questions on the website: 13722367