Question: PLEASE HELP. Write your code in MatLab with explainations so everyone can follow. Problem 1: Bump Functions The function 0 if r 0 is called

 PLEASE HELP. Write your code in MatLab with explainations so everyone

PLEASE HELP. Write your code in MatLab with explainations so everyone can follow.

Problem 1: Bump Functions The function 0 if r 0 is called a bump function. It is easy to show that this function has a minimum at 1-0, and no other minima or maxima. It is also possible to show that f'(z) 0 and f"(x) 0. For every other x, the derivatives f'(x) and f"(x) are easy to calculate by hand We will use this function to explore some of the problems with Newton's method Use Newton's method to calculate the minimum of f using an initial guess of ro1 and a tolerance of 10-8. Save your final guess in A1.dat and save the total number of guesses (including your initial guess) in A2.dat. Now repeat this process with an initial guess of r0- 0.4 and the same tolerance Repeat this process again with an initial guess of r0 0.4 and a tolerance of Now use fminbnd to find the minimum of f on the interval [-1, 1]. Save your Save your final guess in A3.dat and the total number of guesses in A4.dat. 10-32. Save your final guess in A5.dat and the total number of guesses in A6.dat. answer in A7.dat. Problem 1: Bump Functions The function 0 if r 0 is called a bump function. It is easy to show that this function has a minimum at 1-0, and no other minima or maxima. It is also possible to show that f'(z) 0 and f"(x) 0. For every other x, the derivatives f'(x) and f"(x) are easy to calculate by hand We will use this function to explore some of the problems with Newton's method Use Newton's method to calculate the minimum of f using an initial guess of ro1 and a tolerance of 10-8. Save your final guess in A1.dat and save the total number of guesses (including your initial guess) in A2.dat. Now repeat this process with an initial guess of r0- 0.4 and the same tolerance Repeat this process again with an initial guess of r0 0.4 and a tolerance of Now use fminbnd to find the minimum of f on the interval [-1, 1]. Save your Save your final guess in A3.dat and the total number of guesses in A4.dat. 10-32. Save your final guess in A5.dat and the total number of guesses in A6.dat. answer in A7.dat

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!