Simpsons Rule Demonstration

Shows parabolas used in Simpson's rule

You are now following this Submission

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://ch.mathworks.com/matlabcentral/fileexchange/29535-simpsons-rule-demonstration), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Shade area between two curves

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0