File Exchange

image thumbnail

Simpsons Rule Demonstration

version 1.0 (1.44 KB) by

Shows parabolas used in Simpson's rule



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.

Comments and Ratings (0)

MATLAB Release
MATLAB 7.8 (R2009a)

Inspired by: Shade area between two curves

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video