Numerical integration- Multiple-Application Trapezoidal Rule
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.
Citar como
Manuel Ferrer (2024). Numerical integration- Multiple-Application Trapezoidal Rule (https://www.mathworks.com/matlabcentral/fileexchange/73539-numerical-integration-multiple-application-trapezoidal-rule), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Agradecimientos
Inspiración para: trapeze
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0 |