File Exchange

image thumbnail

Trapezoidal method (composite)

version 1.0.2 (1.24 KB) by Manotosh Mandal
Matlab codes for composite Trapezoidal method for numerical integration.

5 Downloads

Updated 22 Oct 2019

View License

In mathematics, the trapezoid rule is a numerical integration method, that is, a method to calculate approximately the value of the definite integral. The rule is based on approximating the value of the integral of f (x) by that of the linear function that passes through the points (a, f (a)) and (b, f (b)).

Example:
Enter lower limit a: 1
Enter upper limit b: 2
Enter the step length h: 0.1

The value of integration is 0.410451>>

Cite As

Manotosh Mandal (2020). Trapezoidal method (composite) (https://www.mathworks.com/matlabcentral/fileexchange/72483-trapezoidal-method-composite), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Brad Haddin

Updates

1.0.2

More examples.

1.0.1

composite Trapezoidal method for numerical integration with example.

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