2D Quadrature (Formula) VI

Performs numerical integration using adaptive quadrature approach. You must manually select the polymorphic instance to use.


icon

Inputs/Outputs

  • cstr.png integrand

    integrand specifies the expression you want to integrate. The first and second integral variables must be x and y, respectively.

  • cnclst.png Upper Limits

    Upper Limits specifies the upper limits of the integral.

  • cdbl.png x upper limit

    x upper limit is the upper limit of the first integral variable x. The default is 1.

  • cdbl.png y upper limit

    y upper limit is the upper limit of the second integral variable y. The default is 1.

  • cnclst.png Lower Limits

    Lower Limits specifies the lower limits of the integral.

  • cdbl.png x lower limit

    x lower limit is the lower limit of the first integral variable x. The default is 0.

  • cdbl.png y lower limit

    y lower limit is the lower limit of the second integral variable y. The default is 0.

  • cdbl.png tolerance

    tolerance controls the accuracy of the quadrature. A smaller tolerance leads to a more accurate result but more computation time. The default is 1E-5.

  • idbl.png result

    result returns the integral result.

  • 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.

  • This VI compares the difference between the 4-points and 7-points Lobatto quadratures on the interval with tolerance to terminate the calculation iteration. If the difference is less than the tolerance, the algorithm stops the iteration and moves on to next interval.

    2D Quadrature

    This VI numerically evaluates the following integral using the adaptive Lobatto quadrature:

    where x1 is x upper limit, x0 is x lower limit, y1 is y upper limit, and y0 is y lower limit.

    The 2D Quadrature instances divide an interval block into many sub-blocks when the integrand f(x,y) varies sharply.

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Mathematics\Integration and Differentiation\VI Reference Based Quadrature.vi