Simpsons Rule Demonstration

Shows parabolas used in Simpson's rule
Updated 25 Nov 2010

View License

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 (2024). Simpsons Rule Demonstration (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

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!
Version Published Release Notes