File Exchange

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

9 Downloads

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

int_(x_1)^(x_7)f(x)dx=3/(10)h(f_1+5f_2+f_3+6f_4+f_5+5f_6+f_7).

Example:
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 (2019). Weddle's rule (composite) (https://www.mathworks.com/matlabcentral/fileexchange/72527-weddle-s-rule-composite), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Brad Haddin

Very nice coding.....

Updates

1.1.1

Composite weddle's rule with example

1.1.0

composite weddle's rule

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