Simpson method demo for calculus

A comparison demo of three techniques for integral calculation : rectangles technique, trapezia technique, and Simpson technique.
21 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

Nicolas Douillet (2024). 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
Categories
Find more on Numerical Integration and Differential Equations in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0