home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-12-21 | 983 b | 33 lines | [TEXT/CWIE] |
-
-
- -------------------------------------------------------------------------------
- Testing the Brent's one-dimensional minimizer
-
-
- For function x^3 - 2*x - 5
- the minimum over [0,1] is found to be at 8.164965933e-01
- Min function value found -6.0887e+00
- No. of iterations 14
- Exact min is at 0.81650
-
- For function (x^3 - 2*x - 5)^2
- the minimum over [2,3] is found to be at 2.094551483e+00
- Min function value found 2.7186e-16
- No. of iterations 15
- Exact root is 2.0945514815
-
- For function (cos(x)-x)^2 - 2
- the minimum over [2,3] is found to be at 2.000000048e+00
- Min function value found 3.8378e+00
- No. of iterations 36
-
- For function (cos(x)-x)^2 - 2
- the minimum over [-1,3] is found to be at 7.390851269e-01
- Min function value found -2.0000e+00
- No. of iterations 18
-
- For function (sin(x)-x)^2 + 1
- the minimum over [-1,3] is found to be at 3.549018070e-03
- Min function value found 1.0000e+00
- No. of iterations 60
-