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

Stay Updated

Get notified about new simulations and tools. We send 1-2 emails per month.