Simpson

Composite Simpson's rule, equally spaced points.
1.3K Downloads
Updated 8 Sep 2009

View License

Takes a vector x of equally spaced points, along with the corresponding vector of function values y, and returns the numerical integral via the composite Simpson's rule.
Note: designed as the last stage of a quantum scattering calculation, where the integrand is not even close to a closed function, hence the lack of a function input. Also aware of the limitation of equally spaced points. Sorry.

Cite As

Lee Harper (2024). Simpson (https://www.mathworks.com/matlabcentral/fileexchange/25255-simpson), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Numerical Integration and Differential Equations in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0