findMinimum

Find the minimum value of the function func().

Returns the value of x such that func(x) is minimised. Uses Brent's method, which uses a parabolic fit to rapidly approach the minimum but reverts to a Golden Section search where necessary.

The minimum is located to an accuracy of feqrel(min, truemin) < real.mant_dig/2.

T
findMinimum
(
T
R
)
(
scope R delegate
(
T
)
func
,
T xlo
,
T xhi
,,
out R funcMin
)

Meta