Home License -- for personal use only. Not for government, academic, research, commercial, or other organizational use. 13-May-2025 16:10:42 opt_sample_test(): MATLAB/Octave version 9.11.0.2358333 (R2021b) Update 7 opt_sample() estimates the minimum and maximum of a function f(x) over the interval [a,b] using n random sample points. f(x) = "humps_fun(x)" 0 <= x <= 2 Using 11 sample values f( 1.929777070398553)= -4.716203862019723, f( 0.3152261633550966)= 94.35224178673191 Using 101 sample values f( 1.941185563521231)= -4.740481369948103, f( 0.2985880111181149)= 96.46950924503045 Using 1001 sample values f( 1.998983240195409)= -4.853327489907726, f( 0.2999945076633661)= 96.49995850630782 Using 10001 sample values f( 1.999585128889503)= -4.854420173267967, f( 0.3002320304400978)= 96.50120272519239 Using 100001 sample values f( 1.999952451386335)= -4.855086237403427, f( 0.3003851636305042)= 96.50140765143321 f(x) = "x/10 + cos(x) + sin(1.0) + pi" -10 <= x <= 10 Using 10001 sample values f( -9.523759169660519)= 2.0355823631489, f( 6.384545661854524)= 5.616385640388284 opt_sample_test(): Normal end of execution. 13-May-2025 16:10:42