Computers and Technology
Computers and Technology, 11.02.2021 23:00, gtrsoccer

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 05:30, savyblue1724707
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
image
Computers and Technology, 23.06.2019 06:30, Knownothing
When early motion pictures played in movie theaters, they were often accompanied by live organ or piano music. which of the following are the most likely reasons that this happened? (select all that apply). the music was provided to distract audience members from the loud sounds made when filmstrips were changed. the music accompanied the movies because the movies were silent and audiences were used to hearing music during plays in theaters. the music usually was played before, and sometimes after the movie, as an alternative form of entertainment. the music viewers to interpret the dramatic action in the films.
Answers: 2
image
Computers and Technology, 23.06.2019 14:30, ladawnrowles005
The option enables you to modify a slide element in most presentation applications.
Answers: 2
image
Computers and Technology, 23.06.2019 17:30, Artemis3821
Scientists have changed the model of the atom as they have gathered new evidence. one of the atomic models is shown below. what experimental evidence led to the development of this atomic model from the one before it? a few of the positive particles aimed at a gold foil seemed to bounce back. the colors of light emitted from heated atoms had very specific energies. experiments with water vapor showed that elements combine in specific proportions. cathode rays were bent in the same way whenever a magnet was brought near them.
Answers: 2
Do you know the correct answer?
Write a MATLAB function, called bisection_method that inputs a function f, two numbers a, b, an erro...

Questions in other subjects:

Konu
English, 03.07.2019 19:00