Owning Palette: Calculus VIs
Requires: Full Development System
Calculates both the function values and the integral of a 1D function between start and end. The function is defined by a formula. The number of points to be calculated depends on the complexity of the given function.
Add to the block diagram | Find on the palette |
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 describing the function under investigation. The formula can contain any number of valid variables. | |
X Values is the array of all regarded points in the interval (start, end). | |
Y Values are the values of the function. | |
Integral of Y are the values of the integral of formula between start and end at all X Values values. | |
ticks is the time in milliseconds to analyze the formula and to produce the X Values array and the Integral of Y array. | |
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
Let f(t) be the given function. The calculation of
can be reformulated as an ordinary differential equation,
I(start) = 0
The algorithm is based on this reformulation. The VI uses the Runge Kutta method for accuracy.
Refer to the 1D Explorer VI in the labview\examples\Mathematics\Optimization directory for an example of using the Integration VI.