Simpson's rule-function

Version 1.0.0 (1.94 KB) by Robby Ching
A numerical method of integrating a given function


Updated 3 Jul 2020

View License

It is a combination of Simpson's 1/3 rule and 3/8 rule method in numerically integrating a given function. It asks the user the number of (equally-spaced) segments on which the function would be evaluated. A 2-segment evaluation is a single application of the Simpson's 1/3 rule; 3 segment is a single application of the 3/8 rule; even segments greater than 3 is a multiple application of 1/3 rule; odd segments greater than 3 is a combination of 1/3 and 3/8 rule.

Cite As

Robby Ching (2023). Simpson's rule-function (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
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!
Version Published Release Notes