Simpsons Rule Demonstration
Updated 25 Nov 2010
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.
Charles Nelatury (2023). Simpsons Rule Demonstration (https://www.mathworks.com/matlabcentral/fileexchange/29535-simpsons-rule-demonstration), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- MATLAB > Mathematics > Numerical Integration and Differential Equations >
- Mathematics and Optimization > Symbolic Math Toolbox > Mathematics > Calculus >
Inspired by: Shade area between two curves
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.