Answered step by step
Verified Expert Solution
Link Copied!

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.
Thanks!
image text in transcribed
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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 14th East European Conference Adbis 2010 Novi Sad Serbia September 2010 Proceedings Lncs 6295

Authors: Barbara Catania ,Mirjana Ivanovic ,Bernhard Thalheim

2010th Edition

3642155758, 978-3642155758

More Books

Students also viewed these Databases questions

Question

What is the principle of thermodynamics? Explain with examples

Answered: 1 week ago

Question

1. Design an effective socialization program for employees.

Answered: 1 week ago