Romberg integration method
Implementation based on the theory contained 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),
as a particular example. Then, the user should invoke the function by indicating four parameters:
Romberg(f,lmin,lmax,k)
where f is the integrand and k is the number of extrapolations. lmin and lmax are the lower and upper limits of the definitive integrand. It prints the table used to perform the extrapolations.
引用格式
Manuel Ferrer (2024). Romberg Integration Algorithm (https://www.mathworks.com/matlabcentral/fileexchange/73537-romberg-integration-algorithm), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
- MATLAB > Mathematics > Linear Algebra >
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |