integral
Core Math
Numerical integration using composite Simpson's rule (1000 fixed steps). May be inaccurate for functions with singularities at endpoints.
Syntax
integral(fun, a, b)
Examples
integral(@(x) x.^2, 0, 1)▶ Run
See Also
Try SimLab — Free MATLAB® Alternative
466 functions. Runs in your browser. No install.
Open SimLab