Develop an M-file to implement parabolic interpolation to locate a minimum. Test your program with the same problem as Example 13.2. The function should have the following features:
• Base it on two initial guesses, and have the program generate the third initial value at the midpoint of the interval.
• Check whether the guesses bracket a maximum. If not, the function should not implement the algorithm, but should return an error message.
• Iterate until the relative error falls below a stopping criterion or exceeds a maximum number of iterations.
• Return both the optimal x and
• Use a bracketing approach (as in Example 13.2) to replace old values with new values.
![Check Mark](/static/check-mark.png)
Want to see the full answer?
Check out a sample textbook solution![Blurred answer](/static/blurred-answer.jpg)
Chapter 15 Solutions
Numerical Methods For Engineers, 7 Ed
Additional Math Textbook Solutions
Advanced Engineering Mathematics
Basic Technical Mathematics
Fundamentals of Differential Equations (9th Edition)
- 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_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_forwardDevelop three mass balance equations for each tank in Figure 1. Solve to determine the concentrations in each tank. Use 'np.linalg.solve' to solve the system of equations you generate. Assume the tanks are at steady-state (i.e. concentration within each tank is not changing with time) and well-mixed (i.e. the concentration flowing out of the tank is equal to the concentration within the tank). Mass can be tracked by multiplying flow rate, Q (L/s) by concentration, c (mg/L) to give mg/s. Hint: for each tank the mass coming in mg/s must equal the mass going out mg/s, set this up like our two reactor example from lecture 6. Note: Volume balances must hold in addition to mass balances. In other words, the Q entering the tank must equal the Q leaving the tank. You can use this principle to find any values for Q that are missing in the figure. 500 mg/s 221c2 21291 Q13c1 2 02392 Q33c3 500 mg/s 33 = 120 13 = 40 212 = 90 23 = 60 21 = 30arrow_forward
- For the equation: a. Secant Method. Use Secant Method to determine the root of the given function up to three iterations use x_1= 0 and xo = 2. Complete the table using the HAND Calculation. Maintain 6 decimal places XH ex = 3 f(x+1) X₁ f(x₁) Eaarrow_forwardFOLLOW THESE STEPS FOR UPVOTE Given Required Diagram Solution Conclusion Do not round off while solving. Question: Consider the figure below. Each tank has a volume of 10 ft³. Conditions on each tank are tabulated as follow: Tank No. 1 2 3 TANK 1 Content Methane Propane Hexane Pressure 70 psia 21 psia 43 psia TANK 1 Temperature 160°F 124°F 110°F TANK 1 k 1.32 1.24 1.39 All separation valves have been opened at the same time. Determine the resulting temperature in °F at equilibrium.arrow_forwardIntroduce slack variables as necessary and then write the initial simplex tableau for the given linear Maximize z = x₁ + 9x2 programming problem. subject to x₁ + 2x₂ ≤ 12 6x₁ + x₂ ≤ 10 2x₁ + 2x₂ ≤8 with x₁ ≥0, X₂ ≥0 Complete the initial simplex tableau. X₁ X2 S₁ $2 $3 1 2 1 6 0 1 10 0 0 8 0 0 0 1 0 N NAT 2 ܘ ܘ ܤ N оооarrow_forward
- 15. You are part of a team working in a machine parts mechanic's shop. An important customer has asked your company to provide springs with a very precise force constant k. To measure the spring constant, you fasten two of the springs between the ends of two very long wires of length L, separated by the unstretched length l of the springs as shown in Figure P29.15. The specific attachment method that you use insulates the springs from the wires so that no current passes through the springs. You lay the apparatus flat on a table and then pass a current of magnitude I through the wires, in opposite directions. As a result the springs stretch by a distance d and come to equilibrium. You determine an expression for the spring constant in terms of L, I, l, and d. Figure P29.15arrow_forwardGIVEN: L1=20 N GIVEN: a= 4m GIVEN: L2= 20 N GIVEN: b= 5m GIVEN: L3=20 N GIVEN: c= 6m GIVEN: L4= 0 N GIVEB: e= 3m GIVEN: L5= 10 N ANSWER: (a) Ax in N (b) Ay in N (c) Ex in N (d) Ey in N PLS SOLVE IN A COMPLETE SOLUTION AND WRITE LEGIBLY AND ALSO DRAW THE FREE BODY DIAGRAMarrow_forwardHaving a diffilcult time solving for the three variables at oncearrow_forward
- mathforadmi..2dff1dd723 PTU Kadoorie sygini 1930 Technical Department of Applied Mathematics Second Semester 2020/2021 Math for Administration Assignment 2 Question 1 For the function: y = 0.01x- 0.001x² Find the zeros, the vertex and the optimum value (max. or min.) Question 2 Suppose a company has fixed costs of $300 and variable 3 costs of x + 1460 dollars per unit, 4 where x is the total number of units produced. Suppose further that the selling price of its product is 1500 X- ♡ lar Fine break-even points. init. II جامعة Palestine ||arrow_forward2. Write a MATLAB script that computes the following sum while requesting the value of x and n from the user.arrow_forwardQ1 / Reduce the block diagram to the simple form R(s) S 13 S 0. S 1 S C(s)arrow_forward
- 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)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780134319650/9780134319650_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781259822674/9781259822674_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781118170519/9781118170519_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337093347/9781337093347_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781118807330/9781118807330_smallCoverImage.gif)