09-Aug-2024 20:51:30 opt_sample_test(): MATLAB/Octave version 6.4.0 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.743378001183608)= -4.191244305233611, f( 0.3843570911157319)= 55.69363462154087 Using 101 sample values f( 1.984883069568264)= -4.827266739441464, f( 0.3312629424739306)= 87.84780867443548 Using 1001 sample values f( 1.996411792023122)= -4.848641225978099, f( 0.2995383456382386)= 96.49440985053837 Using 10001 sample values f( 1.999979377961721)= -4.855135039940119, f( 0.2999484633296454)= 96.49958695785183 Using 100001 sample values f( 1.999998270058438)= -4.855169278646976, f( 0.3003855094902701)= 96.50140758434836 f(x) = "x/10 + cos(x) + sin(1.0) + pi" -10 <= x <= 10 Using 10001 sample values f( -9.525072452962807)= 2.035581671130996, f( 6.383609811959123)= 5.616386315458359 opt_sample_test(): Normal end of execution. 09-Aug-2024 20:51:30