Extrema of f(x1,x2) (Not in Base Package)

The algorithm looks for local extrema of a given function of two variables on a given rectangle. The absolute distance between two extrema must be equal or larger than 1E - 6 for the two vectors to register as different from each other. Details

Start are the start points of both variables, that is, an array of length 2. The default values are (0,0).
End are the end points of both variables, that is, an array of length 2. The default values are (1,1).
formula is a string describing the function.
Variables is an array of two strings representing the two variables with respect to the naming conventions of the Formula VIs. The default variables are (x1, x2). Refer to Formula VI Variables for more information about valid variables.
number of trials is the number of randomly chosen 2D starting points of the algorithm.
Minima is a 2D array of all local minima of the given function. Any local minimum is presented by two coordinates.
Maxima is a 2D array of all local maxima of the given function. Any local maximum is presented by two coordinates.
ticks is the time effort for the whole calculation of the function values in milliseconds.
error denotes any incorrect function definitions and/or discrepancies between the function definition and the array of variables.

Extrema of f(x1,x2) Details

While the number of trials can be very large, there is no guarantee you can find all or at least one zero, local minimum or local maximum of the given function. Moreover, such points do not exist in all cases.

Though the randomly chosen start points of the extrema algorithm belong to the initially given rectangle, sometimes the determined extrema can be found outside of the rectangle. In this case, these values will also be presented.