FunctionMathFindMaximum(FuncDouble, Double, Interval) Method

Maximizes a function on the given interval.

Definition

Namespace: Meta.Numerics.Analysis
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static Extremum FindMaximum(
	Func<double, double> f,
	Interval r
)

Parameters

f  FuncDouble, Double
The function.
r  Interval
The interval.

Return Value

Extremum
The maximum.

Exceptions

ArgumentNullExceptionf is null.
NonconvergenceExceptionMore than the maximum allowed number of function evaluations occurred without a minimum being determined.

See Also