Question: Develop a program using a programming or macro language to implement the quadratic interpolation algorithm. Design the program so that it is expressly designed to

Develop a program using a programming or macro language to implement the quadratic interpolation algorithm. Design the program so that it is expressly designed to locate a maximum. 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 massage.

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

Return both the optimal x and ƒ(x).

Minimize the number of function evaluations.

Test your program with the same problem as Example 13.2


Step by Step Solution

3.53 Rating (173 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Because of multiple local minima and maxima there is no really simple means to test whether a single ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

45-M-N-A-O (15).docx

120 KBs Word File

Students Have Also Explored These Related Numerical Analysis Questions!