FUNCTION REFERENCE
quad
Numerical integration by adaptive Simpson quadrature.
Numerical integration by adaptive Simpson quadrature.
Syntax
q = quad(fun, a, b)Syntax
q = quad(fun, a, b, tol)Syntax
q = quad(fun, a, b, tol, [], p1, p2, ...)Syntax
[q, fcnt] = quad(...)fun is a function handle or a function name called with a row of points (and p1, p2, ... after it). The default absolute tolerance is 1e-6. fcnt is the number of integrand values used. Limits must be finite scalars.
Example
quad(@(x) exp(x), 0, 1) % 1.7183Differences from MATLAB: A nonzero trace argument is not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.