Calc.FindMin Method

Numerically finds the minimum of a function.
public static double FindMin( 
   object userdata
   double tol
   int maxiter
   double ax
   double cx
   out double xmin 
)

Parameters

f
NumericFunctionDelegate

The function to search.

userdata
object

Any data sent to the callback.

tol
double

Tolerance of the answer.

maxiter
int

Maximum number of iterations. This can usually be selected large since iteration is terminated when tolerance is reached.

ax
double

The low x of the search area of the function.

cx
double

The high x of the search area of the function.

xmin
double

Set to x at the position of the minimum y of the function.

Return Value

double

The value of the function at min x.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition