Simpsons Rule Demonstration
Version 1.0.0.0 (1.44 KB) by
Charles Nelatury
Shows parabolas used in Simpson's rule
Displays the function over the range of integration and the parabolas used to approximate the area under it.
The function accepts
f is a function in one variable
I is a 1x2 vector
m is the number of points used to create m parabolas.
and outputs the graphs of f over I and the m parabolas that will be used to approximate the area under f.
Cite As
Charles Nelatury (2026). Simpsons Rule Demonstration (https://uk.mathworks.com/matlabcentral/fileexchange/29535-simpsons-rule-demonstration), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Numerical Integration and Differential Equations >
- Mathematics and Optimization > Symbolic Math Toolbox > Mathematics > Calculus >
Find more on Numerical Integration and Differential Equations in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: Shade area between two curves
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
