Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need some help with this matlab question. Thanks! Problem 1: Bump Functions The function f(x) if x = 0 is called a bump function.
I need some help with this matlab question.
Problem 1: Bump Functions The function f(x) if x = 0 is called a bump function. It is easy to show that this function has a minimum at x = 0, and no other minima or maxima. It is also possible to show that f'(x) = 0 and f"(x) 0. For every other a, 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 to 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 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 Now repeat this process with an initial guess of 00.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 Things to think about: What went wrong in each case with Newton's method? Does it look like the method is converging? If you decrease the tolerance even further, can you find the minimum? Given what you know about rounding error, do you think this is wise? Does fminbnd do a better job? What about the golden section search? You will probably find that the golden section search has some odd behavior. Can you explain this Thanks!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started