EBK NUMERICAL METHODS FOR ENGINEERS
7th Edition
ISBN: 9780100254145
Author: Chapra
Publisher: YUZU
expand_more
expand_more
format_list_bulleted
Textbook Question
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
• Iterate until the relative error falls below a stopping criterion or exceeds a maximum number of iterations.
• Return both the optimal x and
Expert Solution & Answer
![Check Mark](/static/check-mark.png)
Want to see the full answer?
Check out a sample textbook solution![Blurred answer](/static/blurred-answer.jpg)
Students have asked these similar questions
We have designed a divide-and-conquer algorithm that runs on an input of size n. This algorithm works by spending O(1) time splitting the problem in half, then does a recursive call on each half, then spends O(n2 ) time combining the solutions to the recursive calls. On small inputs, the algorithm takes a constant amount of time. We want to see how long this algorithm takes, in terms of n to perform the task.
(a) First, write a recurrence relation that corresponds to the time-complexity of the above divide and conquer algorithm.
(b) Then, solve the relation to come with the worst-case time taken for the algorithm.
Please show all work in depth.
Please help, this for Matlab the image is the first question with following 2 and 3 they go together.
2. Solving the question by using bisection.m with the stopping criterion at 1%. Report the root and # of iterations.
3. by using newton-Raphson matlab script with the stopping criterion at 0.1%. Report the root and # of iterations.
DETAILS
CHAPMANML6 1.CQ.008.
MY NOTES
ASK YOUR TEACHER
Complete the following sentence.
Instead of typing commands directly in the Command Window, a series of commands can be placed into a file, and the entire file can be executed by typing its name in the Command
Window. Such files are called
files.
Chapter 15 Solutions
EBK NUMERICAL METHODS FOR ENGINEERS
Ch. 15 - A company makes two types of products, A and B....Ch. 15 - Prob. 2PCh. 15 - 15.3 Consider the linear programming...Ch. 15 - 15.4 Consider the linear programming...Ch. 15 - Use a software package (for example, Excel,...Ch. 15 - 15.6 Use a software package (for example, Excel,...Ch. 15 - 15.7 Consider the following constrained nonlinear...Ch. 15 - Use a software package to determine the maximum of...Ch. 15 - Use a software package to determine the maximum of...Ch. 15 - Given the following function,...
Ch. 15 - You are asked to design a covered conical pit to...Ch. 15 - 15.12 An automobile company has two versions of...Ch. 15 - 15.13 Og is the leader of the surprisingly...Ch. 15 - 15.14 Develop an M-file that is expressly designed...Ch. 15 - 15.15 Develop an M-file to locate a minimum with...Ch. 15 - Develop an M-file to implement parabolic...Ch. 15 - 15.17 The length of the longest ladder that can...
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, mechanical-engineering and related others by exploring similar questions and additional content below.Similar questions
- 8. What are the main stages of the FEM? 9. Make a sketch of a linear triangular finite element. Point the nodes and write the approximating polynomial. 10. Describe with one sentence what the shape functions in FEM are. 11. Special case of which method is the method of Galerkin? 12. What are the three main parts of a FEM program? 13. How can be increased the accuracy of the derivatives for linear finite elements in FEM postprocessor? 14. Specify three methods for force computation in FEM postprocessor.arrow_forward1) Model the following problem with integer programming. The marketing department has been allocated a budget of $10M and would like to determine which products to develop advertising campaigns; note: at most one campaign can be launched for each product. Their goal is to maximize revenue for the company. Data is presented in the table below. Product A BCD E F 10 7 12 8 6 Projected Revenue ($M) Cost ($M) 6 1 2 5 4 3arrow_forwardB/ As shown in the following Fuzzy Sets = {Negative, Zero, Positive} Assuming that we are using trapezoidal membership functions, What is the degree of membership of x in each of the Fuzzy Sets at Crisp Input: x = 0.2 and -0.2? NEGATIVE ZERO POSITIVE 0.0 -3.0 -2.5 -1.0 -0.5 0.0 0.5 1.0 25 3.0arrow_forward
- A manufacturing company produces two types of products called X and Y. Each product uses four different machines like lathe, drilling, grinding & milling operations. The profit per unit of selling X and Y are 7 RO and 3 RO respectively. Formulate a linear programming model with the given constraints to determine the production volume of each product in order to maximize the total profit (in OR). Solve the following linear programming model by using Graphical method. Subject to, 6X + 4Y < 24 X + 2Y < 6 -X + Y< 1 Y< 2 and X,Y 2 0arrow_forwardf(x)=-0.9x? +1.7x+2.5 Calculate the root of the function given below: a) by Newton-Raphson method b) by simple fixed-point iteration method. (f(x)=0) Use x, = 5 as the starting value for both methods. Use the approximate relative error criterion of 0.1% to stop iterations.arrow_forwardThe following tools / resources may be useful for you to complete the assignment:a. Chatgpt (You may use it to learn Matlab coding or any other computer language. An example is given here: https://shareg.pt/mXHGne9 ). Please take note that code generated by chatgpt can be directly copied and pasted.b. Matlabi) Useful cheat sheet (https://n.ethz.ch/~marcokre/download/ML-CheatSheet.pdf)ii) Getting started with Matlab (https://matlabacademy.mathworks.com/en/details/gettingstarted )iii) Getting 30-day Matlab trial license (https://www.mathworks.com/campaigns/products/trials.html ) iv) Polyfit (https://www.mathworks.com/help/matlab/ref/polyfit.html )v) Exponential Fit (https://www.mathworks.com/matlabcentral/answers/91159-how-do-i-fit-an-exponential-curve-to-my-data)c. PlotDigitizer (https://plotdigitizer.sourceforge.net/ ) or a free online app that does not requires installation (https://plotdigitizer.com/app )You may use your own engineering judgement to make any assumptions on any…arrow_forward
- Please make the same graph on MATLAB, I need help on making the exact copy of the graph that is shown on the picture. Please make it 100 percent accurate. Send the code. I need help.arrow_forwardDISCUSSION Before posting to the discussion board, complete the following: The concept of a weak solution of a boundary value problem plays an important role in some numerical solutions including the finite element method. The idea of a "weak solution" can be a rather weak notion. The following problem was presented in lecture 3 of week 8. It is generally not solvable in closed form. 00 on 0arrow_forwardThis for Matlab Please modify the script bisect.m to report/create the iteration table.arrow_forwardPlease!! Use only graphical method.arrow_forwardQ1 / Reduce the block diagram to the simple form R(s) S 13 S 0. S 1 S C(s)arrow_forwardHW 2_2 The volume of a partially-filled spherical tank can be computed as: V = πα 3 (3R – d); where d is the depth of the water in the tank (m) and R is the radius of the tank (m). Given that R=3m, to what depth must the tank be filled so that it holds 30 m³? Write a PYTHON code & implement the bisection algorithm to answer the question correct to 3 sig figs. Plot to select your own initial guesses. Display the answer in an informative sentence, using formatted printing.arrow_forwardarrow_back_iosSEE MORE QUESTIONSarrow_forward_ios
Recommended textbooks for you
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY
![Text book image](https://www.bartleby.com/isbn_cover_images/9780190698614/9780190698614_smallCoverImage.gif)
Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press
![Text book image](https://www.bartleby.com/isbn_cover_images/9780134319650/9780134319650_smallCoverImage.gif)
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON
![Text book image](https://www.bartleby.com/isbn_cover_images/9781259822674/9781259822674_smallCoverImage.gif)
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education
![Text book image](https://www.bartleby.com/isbn_cover_images/9781118170519/9781118170519_smallCoverImage.gif)
Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337093347/9781337093347_smallCoverImage.gif)
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning
![Text book image](https://www.bartleby.com/isbn_cover_images/9781118807330/9781118807330_smallCoverImage.gif)
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY
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