Skip to content

triplequad

general · scripts/general/triplequad.m

: q = triplequad (f, xa, xb, ya, yb, za, zb)
: q = triplequad (f, xa, xb, ya, yb, za, zb, tol, quadf, …)

Integrate f (x, y, z) over a box.

f is called with a vector x and scalars y and z and must return an array of the same size as x. tol is the absolute tolerance (default 1e-6) and quadf the one-dimensional integrator called as quadf (g, a, b, tol). Additional arguments are passed to f after x, y and z.