Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use matlab and show all code input and out put. The next function I'd like to consider is f(x)=x84x+3 over the interval 0 to

please use matlab and show all code input and out put.

image text in transcribed

The next function I'd like to consider is f(x)=x84x+3 over the interval 0 to 3 a. Use the MATLAB golden search algorithm to find the minimum value of the function to a tolerance of 1e4. b. What is the true (analytic) minimum of this function? c. What is the derivative of the function at the x point returned by the MATLAB algorithm? d. How close is the minimum value of the point found by the algorithm to the analytical minimum? Compute this as Et e. Explain in words the quality of your results e.g. how accurate of a solution did you obtain? f. Now try the following: minimize f(x)=0.5x210sin(x) using the MATLAB algorithm. a. First run the algorithm for the intervals [10,10] with tolerance 1e4. What are the resulting x and f(x) values? b. Now run the algorithm for the intervals [10,5] with tolerance 1e4. What are the resulting x and f(x) values in this case? c. Plot the function in MATLAB. How do the results compare? d. How do you account theoretically for the discrepancies? e. Are both solutions found optimal in some sense? Descrive

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions

Question

Briefly describe how each of the activity ratios is computed.

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago