quada_double (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info Download Help (Windows Only)

Owning Class: integration

Requires: MathScript RT Module

Syntax

quada_double(f, xmin, xmax, ymin, ymax)

quada_double(f, xmin, xmax, ymin, ymax, n)

quada_double(f, xmin, xmax, ymin, ymax, n, method)

c = quada_double(f, xmin, xmax, ymin, ymax)

c = quada_double(f, xmin, xmax, ymin, ymax, n)

c = quada_double(f, xmin, xmax, ymin, ymax, n, method)

Description

Computes the double integral of the function f in the 2D interval [xmin, xmax]-by-[ymin, ymax]. The integrator does not work in an adaptive way.

Examples

Inputs

Name Description
f Specifies the function you want to integrate. f is a string that represents a function of two variables. The two variables must be x and y.
xmin Specifies a real scalar.
xmax Specifies a real scalar. xmax must be greater than xmin.
ymin Specifies a real scalar.
ymax Specifies a real scalar. ymax must be greater than ymin.
n Specifies the number of integration points in the x- and y-direction. n is a natural number greater than 1. The default is 100.
method Specifies the method to use to compute the double integral. method is a string that accepts the following values.

 'bode' Bode method 'simps' Simpson method 'simps3/8' Simpson 3/8 method 'trapz' (default) Trapezoidal method

Outputs

Name Description
c Returns the double integral. c is a real scalar.

Details

The following table lists the support characteristics of this function.

 Supported in the LabVIEW Run-Time Engine No Supported on RT targets Yes Suitable for bounded execution times on RT Not characterized

Examples

C = quada_double('sin(x)*cos(y)', 0, 1, 0, 2, 200, 'bode')