home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-12-21 | 718 b | 27 lines | [TEXT/CWIE] |
-
-
- -------------------------------------------------------------------------------
- Testing the Brent's root finder
-
-
- For function x^3 - 2*x - 5,
- the root over [2,3] is 2.094551482e+00
- Function value at the root found -6.5533e-16
- No. of iterations 11
- Exact root is 2.0945514815
-
- For function cos(x)-x,
- the root over [2,3] is 2.000000000e+00
- Function value at the root found -2.4161e+00
- No. of iterations 52
-
- For function cos(x)-x,
- the root over [-1,3] is 7.390851332e-01
- Function value at the root found 0.0000e+00
- No. of iterations 11
-
- For function sin(x)-x,
- the root over [-1,3] is -1.643737374e-08
- Function value at the root found 0.0000e+00
- No. of iterations 58
-