Numerical integration- Multiple-Application Trapezoidal Rule

版本 1.0.0 (1.9 KB) 作者: Manuel Ferrer
Performs the numerical integration by the multiple-application trapezoidal rule
174.0 次下载
更新时间 2019/12/3

查看许可证

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.

引用格式

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. 检索来源 .

MATLAB 版本兼容性
创建方式 R2019b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Numerical Integration and Differential Equations 的更多信息
标签 添加标签
致谢

启发作品: trapeze

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0