integral3
general · scripts/general/integral3.m
q = integral3 (fun, xmin, xmax, ymin, ymax, zmin, zmax)
q = integral3 (..., name, value, ...)
Numerically integrate fun(x, y, z) over a three-dimensional region.
fun must accept three arrays of equal size and return an array of
that size. The limits for x are real scalars (possibly infinite); the
limits for y are scalars or functions of x, and those for z scalars or
functions of x and y. The options are "AbsTol" (default
1e-10), "RelTol" (default 1e-6) and "Method", which is
"auto", "tiled" or "iterated"; all methods
return the same value within the tolerances.
See also: integral, quad2d, integral2.