That's a good argument

I might even try it myself.

1.

- Brent, R. P. (1973), "Chapter 4: An Algorithm with Guaranteed Convergence for Finding a Zero of a Function",
*Algorithms for Minimization without Derivatives*, Englewood Cliffs, NJ: Prentice-Hall, ISBN 0-13-022335-2 (can alway write f(x) = 0 as min f(x)*f(x) ==. very robust fo iv Ihave found).

2. Numercal,Recipes section 9.3 vn Wijngaarden-Dekker-Brent ==> 1 page of C code.

3. Use source code in Boost C++ and leave the rest behind. (boost\maths\tools\minima.hpp)

(4. solve min f(x)*f(x) by formulating as an ODE .... more advanced).

I reckon this should help! Good luck.

//

Boost Code >> NR Code