Find All Minima 1D (Not in Base Package)

Determines all local minima of a given function in a given interval. Details

accuracy controls the accuracy of the minimum. The method stops if two consecutive approximations differ no more than the value of accuracy. The default is 1E - 8.
step type A value of 0 represents a fixed number of function values, a value of 1 represents an optimal step size. In general, the second value leads to more accurate Minima. The default is 0.
algorithm A value of 0 represents the Golden Section method, a value of 1 represents the Brent method. The default is 0.
start is the start point of the interval. The default is 0.0.
end is the end point of the interval. The default is 1.0.
formula is a string representing the function under investigation.
Minima is an array of all found minima of formula in the interval (start, end).
f(Minima) is the function values at the points Minima.
ticks is the time in milliseconds for the whole calculation.
error returns any error or warning condition from the VI.

Find All Minima 1D Details

Note  If you want to find out the maxima of a function, you must take -function as the inputs. The -f(Minima) are the correct maximal function values.

Find all Minima 1D of f(x) = cos(x^2). All minima are determined. The following diagram shows the plot of f(x). The boxes on the plot are the locations of the minima. Enter the following values on the front panel: