
14.2.2 Golden section search method
Problem:
Implement 3 steps of the golden-section search method in order to find the minimum value of the function \( y=x^{2}+2 x \) on the interval \( [-2 ; 0] \). Estimate the error of the obtained approximation.