Min1DSourceOne dimensional minimization routines.
brent f a b uses Brent's method to return (x, f x) where x is the best approximation to a minimum point of f on the interval [a,b].
Algorithm: G.Forsythe, M.Malcolm, C.Moler, Computer methods for mathematical computations. M., Mir, 1980.
val golden_search :
?tol:float ->
(float -> float) ->
float ->
float ->
float ->
float * floatgolden_search f a b c returns (x, f x) where x is an approximaion of a minimum point of f inside the interval [a,c]. The point b must be between a and c and such that f(b) is lower than f(a) and f(c).