Numerical integration- Multiple-Application Trapezoidal Rule

Performs the numerical integration by the multiple-application trapezoidal rule
186 Downloads
Aktualisiert 3. Dez 2019

Lizenz anzeigen

Multiple-Application Trapezoidal Rule

Implementation based on the theory presented in "Numerical Methods for Engineers" by Steven C. Chapra

Instructions to use the function:

The user must provide the function as an anonymous function in the command window. This can be done by introducing

f=@(x) x.*exp(2*x)

Then, the user should invoke the function by indicating four parameters:

Trap(f,lmin,lmax,N)

where f is the integrand and N is the number of intervals. lmin and lmax are the lower and upper limits of the definitive integrand. In addition, a figure is depicted showing the evaluation points and an approximated integration region.

Zitieren als

Manuel Ferrer (2026). Numerical integration- Multiple-Application Trapezoidal Rule (https://de.mathworks.com/matlabcentral/fileexchange/73539-numerical-integration-multiple-application-trapezoidal-rule), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2019b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Numerical Integration and Differential Equations finden Sie in Help Center und MATLAB Answers
Tags Tags hinzufügen
Quellenangaben

Inspiriert: trapeze

Version Veröffentlicht Versionshinweise
1.0.0