Minimizes the given function within the given interval.

Namespace:  CenterSpace.NMath.Analysis
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
double Minimize(
	OneVariableFunction f,
	double a,
	double b,
	double c
)
Visual Basic (Declaration)
Function Minimize ( _
	f As OneVariableFunction, _
	a As Double, _
	b As Double, _
	c As Double _
) As Double
Visual C++
double Minimize(
	OneVariableFunction^ f, 
	double a, 
	double b, 
	double c
)

Parameters

f
Type: CenterSpace.NMath.Core..::.OneVariableFunction
The function to minimize.
a
Type: System..::.Double
The lower limit.
b
Type: System..::.Double
A point between a and c such that fb < fa and fb < fc. .
c
Type: System..::.Double
The upper limit.

Return Value

The minimum of function over the interval from a to c.

Remarks

Iteration stops when either the estimated error is less than the tolerance, or the maximum number of iterations is reached. Setting the error tolerance to less than zero ensures that the maximum number of iterations is always reached.

See Also