Question: [ 2 5 ] Implement a 1 - D Golden Section Algorithm ( in C / C + + , MATLAB, etc. ) so that:

[25] Implement a 1-D Golden Section Algorithm (in C/C++, MATLAB, etc.) so that:
a)x**= goldensection (xl,xu,e) where xl is the lower bound in x,xu is the upper
bound in x, and e is the convergence tolerance.
b) Within the algorithm, call a function evaluate(x), which will essentially be
f(x). I need to be able to modify this function to evaluate your code.
[ 2 5 ] Implement a 1 - D Golden Section

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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

Students Have Also Explored These Related Programming Questions!