Develop a program using a programming or macro language to implement the parabolic interpolation algorithm. Design the program so that it is expressly designed to locate a maximum and selects new points as in Example 13.2. The subroutine 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 subroutine 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
• Minimize the number of function evaluations.
Test your program with the same problem as Example 13.2.

Want to see the full answer?
Check out a sample textbook solution
Chapter 13 Solutions
EBK NUMERICAL METHODS FOR ENGINEERS
- A sequence X = (xn) is said to be a contractive sequence if there is a constant 0 < C < 1 so that for all n = N. - |Xn+1 − xn| ≤ C|Xn — Xn−1| -arrow_forward3) Find the surface area of z -1≤ y ≤1 = 1 + x + y + x2 over the rectangle −2 ≤ x ≤ 1 and - Solution: TYPE YOUR SOLUTION HERE! ALSO: Generate a plot of the surface in Mathematica and include that plot in your solution!arrow_forward7. Walkabout. Does this graph have an Euler circuit? If so, find one. If not, explain why not.arrow_forward
- Below, let A, B, and C be sets. 1) Prove (AUB) nC = (ANC) U (BNC).arrow_forwardA sequence X = (xn) is said to be a contractive sequence if there is a constant 0 < C < 1 so that for all n = N. - |Xn+1 − xn| ≤ C|Xn — Xn−1| -arrow_forward1) Suppose continuous random variable X has sample space S = [1, ∞) and a pdf of the form f(x) = Ce-(2-1)/2. What is the expected value of X?arrow_forward
- Blue Ridge Hot Tubs manufactures and sells two models of hot tubs: the Aqua-Spa and the Hydro-Lux. Howie Jones, the owner and manager of the company, needs to decide how many of each type of hot tub to produce during his next production cycle. Howie buys prefabricated fiberglass hot tub shells from a local supplier and adds the pump and tubing to the shells to create his hot tubs. (This supplier has the capacity to deliver as many hot tub shells as Howie needs.) Howie installs the same type of pump into both hot tubs. He will have only 200 pumps available during his next production cycle. From a manufacturing standpoint, the main difference between the two models of hot tubs is the amount of tubing and labor required. Each Aqua-Spa requires 9 hours of labor and 12 feet of tubing. Each Hydro-Lux requires 6 hours of labor and 16 feet of tubing. Howie expects to have 1,566 production labor hours and 2,880 feet of tubing available during the next production cycle. Howie earns a profit of…arrow_forwardNo chatgpt pls will upvotearrow_forwardFind an nfa that accepts the language L(aa (a + b)). Create and test the NFA in Jflap. Test the strings: aab, ab, aaaa, aaaab, baab, aa, abbbb, a, b, 1. Submit the Jflap diagram and the Jflap test cases. 4. Find an nfa that accepts the language L (aa* (a+b)).arrow_forward
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:CengageAlgebra: Structure And Method, Book 1AlgebraISBN:9780395977224Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. ColePublisher:McDougal LittellMathematics For Machine TechnologyAdvanced MathISBN:9781337798310Author:Peterson, John.Publisher:Cengage Learning,
- Glencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw HillFunctions and Change: A Modeling Approach to Coll...AlgebraISBN:9781337111348Author:Bruce Crauder, Benny Evans, Alan NoellPublisher:Cengage Learning




