09-Aug-2024 19:50:36 opt_gradient_descent_test(): MATLAB/Octave version 6.4.0 opt_gradient_descent() estimates a local minimum of a function f(x) near a starting point x0, using a stepsize factor gamma. f(x) = "humps_fun(x)" f'(x) = "humps_deriv(x)" x0 = 0.400000 gamma = 0.010000 Reached limit on the number of steps. f ( 7.371824451369459)= -5.95615588233429, f'( 7.371824451369459)= -0.01301689514853414 f(x) = "humps_fun(x)" f'(x) = "humps_deriv(x)" x0 = 0.400000 gamma = 0.000500 Reached a very small stepsize f ( 0.6370091804100224)= 11.2527541257078, f'( 0.6370091804100224)= 0.0001189866127333516 f(x) = "x/10 + cos(x) + sin(1.0) + pi" f'(x) = "1/10 - sin(x)" x0 = 1.000000 gamma = 0.010000 Reached a very small stepsize f ( 3.041415304292004)= 3.29221872458293, f'( 3.041415304292004)= -9.878365893820074e-06 opt_gradient_descent_test(): Normal end of execution. 09-Aug-2024 19:50:36