Minimizes the given function within the given interval.

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

Syntax

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

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.

Implements

IOneVariableMinimizer..::.Minimize(OneVariableFunction, Double, Double, Double)

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