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.


icon

Inputs/Outputs

  • cdbl.png start

    start is the start point of the interval. The default is 0.0.

  • cdbl.png end

    end is the end point of the interval. The default is 1.0.

  • cstr.png formula

    formula is a string describing the function under investigation. The formula can contain any number of valid variables.

  • i1ddbl.png X Values

    X Values is the array of all regarded points in the interval (start, end).

  • i1ddbl.png Y Values

    Y Values are the values of the function.

  • i1ddbl.png Integral of Y

    Integral of Y are the values of the integral of formula between start and end at all X Values values.

  • iu32.png ticks

    ticks is the time in milliseconds to analyze the formula and to produce the X Values array and the Integral of Y array.

  • ii32.png error

    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.

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Mathematics\Optimization\1D Explorer.vi