Numerical Methods for Engineers
Numerical Methods for Engineers
7th Edition
ISBN: 9780073397924
Author: Steven C. Chapra Dr., Raymond P. Canale
Publisher: McGraw-Hill Education
bartleby

Videos

Textbook Question
Book Icon
Chapter 15, Problem 14P

Develop an M-file that is express ly designed to locate a maximum with the golden-section search algorithm. In other words, set it up so that it directly finds the maximum rather than finding the minimum of f ( x ) . Test your program with the same problem as Example 13.1. The function should have the following features:

• Iterate until the relative error falls below a stopping criterion or exceeds a maximum number of iterations.

• Return both the optimal x and f ( x ) .

Blurred answer
Students have asked these similar questions
Find the optimum of f(x) = 2.2x – 1.7x2 + x3 – 0.25x4 Perform: (Round-off all computed values to 4 decimal places.)a) (2 iterations) Golden-Section Search using XL = –2.4 and XU = 4.5 For each iteration, show the following: d, X1, X2, decision rule, ea, and the next XL andXU Are you approaching a local or global optimum? ____________ Are you approaching a minimum or maximum optimum? __________
If the above graph is the graph of f′(x), then f(x) has a local maximum at x=___, a local minimum at x=____ and a critical point that is neither a local maximum nor a local minimum at x=____
Show that 5 is a critical number of the function g(x)  = 2+ (x -5)3but  g does not have a local extremevalue at 5.
Knowledge Booster
Background pattern image
Advanced Math
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, advanced-math and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning
Text book image
College Algebra
Algebra
ISBN:9781305115545
Author:James Stewart, Lothar Redlin, Saleem Watson
Publisher:Cengage Learning
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
12. Searching and Sorting; Author: MIT OpenCourseWare;https://www.youtube.com/watch?v=6LOwPhPDwVc;License: Standard YouTube License, CC-BY
Algorithms and Data Structures - Full Course for Beginners from Treehouse; Author: freeCodeCamp.org;https://www.youtube.com/watch?v=8hly31xKli0;License: Standard Youtube License