image thumbnail

Weddle's rule (composite)

version 1.1.1 (1.26 KB) by Manotosh Mandal
Matlab codes for composite weddle's rule of numerical integration


Updated 27 Aug 2019

View License

Let the values of a function f(x) be tabulated at points x_i equally spaced by h=x_(i+1)-x_i, so f_1=f(x_1), f_2=f(x_2), .... Then Weddle's rule approximating the integral of f(x) is given by the Newton-Cotes-like formula


Enter lower limit a: 1
Enter upper limit b: 2
Enter the number of sub-intervals n: 36

The value of integration is 0.348307>>

Cite As

Manotosh Mandal (2021). Weddle's rule (composite) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
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!