FUNCTION REFERENCE

integral3

Numerical integration over a three-dimensional region.

Numerical integration over a three-dimensional region.

Syntax

q = integral3(fun, xmin, xmax, ymin, ymax, zmin, zmax)

Syntax

q = integral3(fun, xmin, xmax, ymin, ymax, zmin, zmax, 'AbsTol', tol, 'RelTol', tol)

fun(x, y, z) is called with arrays of the same size and must return an array of that size. ymin and ymax may be function handles of x; zmin and zmax may be function handles of (x, y). Limits may be infinite. Defaults: 'AbsTol' 1e-10, 'RelTol' 1e-6.

Example

integral3(@(x, y, z) x + y + z, 0, 1, 0, 1, 0, 1)   % 1.5000

Differences from MATLAB: Iterated one-dimensional integrals with tighter internal tolerances, scaling of inner absolute tolerances by the outer integration measure, and propagation of inner error estimates; 'Method' is accepted but has no effect. The last digits can differ from MATLAB.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.