Simpson method demo for calculus

version 1.0.0 (1.87 KB) by Nicosahedron
A comparison demo of three techniques for integral calculation : rectangles technique, trapezia technique, and Simpson technique.

20 Downloads

Updated 19 Dec 2019

View License

A comparison demo of three techniques for integral calculation : rectangles technique, trapezia technique, and Simpson technique. Their results are also compared to the reference exact value.

The whole thing is summed up and display in a figure.

Unique input parameter n is a numeric, positive integer corresponding to the number of interval for the approximation (rectangles, etc...)

Cite As

Nicosahedron (2022). Simpson method demo for calculus (https://www.mathworks.com/matlabcentral/fileexchange/73735-simpson-method-demo-for-calculus), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!