vfminbr.dat

来自「basic linear algebra classes and applica」· DAT 代码 · 共 41 行

DAT
41
字号
./vfminbr		Testing Brent's one-dimensional minimizerFor function x^3 - 2*x - 5, from the Forsythe book,the minimum over [0,1] is	8.164965811e-01The min function value found	-6.0887e+00Total iterations		12The min is expected value at	8.1649659e-01For function (x^3 - 2*x - 5)^2, from the Forsythe book, see vzeroin.cc,the minimum over [2,3] is	2.094551483e+00The min function value found	2.7186e-16Total iterations		15The min is expected value at	2.0945515e+00For function (cos(x)-x)^2 -2,the minimum over [2,3] is	2.000000048e+00The min function value found	3.8378e+00Total iterations		36For function (cos(x)-x)^2 -2,the minimum over [-1,3] is	7.390851269e-01The min function value found	-2.0000e+00Total iterations		18The min is expected value at	7.3908513e-01For function (sin(x)-x)^2 +1,the minimum over [-1,3] is	-3.815499176e-03The min function value found	1.0000e+00Total iterations		60For function HUMPS function Matlab:Demos:humps.m,the minimum over [0,2] is	3.003756213e-01The min function value found	-9.6501e+01Total iterations		16Compilation finished at Fri Dec 25 23:19:38

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?