subject

Consider the function f (x)acos(tx) -5 (a) matlab has a built-in function for root-finding problems called fzero. to use fzero, you first need to create a function handle which can be done with an anonymous function. if your function handle is named fun, then you can calculate the root x using the following line of code x = fzero(fun, x0); where x0 is an initial guess. use fzero and an initial guess of xo = 5 to find the root of f(x). we will consider this to be the "exact solution" for the rest of the problem. save the exact solution in a9.dat (b) now find the root using newton's method. use a maximum of 50 steps, a tolerance of 10-3, and an initial guess of xo = 5. calculate the error by subtracting the newton's method solution from the exact solution obtained in part (a) and then taking the absolute value. make a 1 x 2 row vector that contains the error and the number of steps of newton's method that were performed number of steps) error save this vector in a10.dat

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 20:00, random286
How is the number 372 written when expanded out to place values in the base 8 (octal) number system? a. 2 x 4 + 3 x 2 + 4 x 1 b. 3 x 64 + 7 x 8 + 2 x 1 c. 3 x 8 + 7 x 7 + 2 x 6 d. 3 x 100 + 7 x 10 + 2 x 1
Answers: 1
image
Computers and Technology, 23.06.2019 02:00, eila3601
As with any small island country, cuba has fewer natural resources than countries such as brazil. this affects their economy in that cuba a) exports only manufactured products. b) exports more products than it imports.. c) must import more products than it exports. d) has imposed trade barriers against the united states.
Answers: 3
image
Computers and Technology, 23.06.2019 14:00, ava5015
What is html ? give a small description about html
Answers: 2
image
Computers and Technology, 24.06.2019 22:00, dixks
According to your study unit, what is the main reason that improved human relations skills may improve your grades?
Answers: 1
You know the right answer?
Consider the function f (x)acos(tx) -5 (a) matlab has a built-in function for root-finding problems...

Questions in other subjects: