int(f,a,b)

版本 2.0.0.0 (4.5 KB) 作者: Mark Holmes
This program computes the integral of f(x) from x=a to x=b using an adaptive Simpson's rule.
77.0 次下载
更新时间 2016/3/9

查看许可证

This program computes the integral of f(x) from x=a to x=b using an adaptive Simpson's rule. It is run by simply using the command int(@f,a,b) where f is defined using a function file (or procedure), or as an anonymous function. MATLAB vectorization is not used when defining the function.

引用格式

Mark Holmes (2024). int(f,a,b) (https://www.mathworks.com/matlabcentral/fileexchange/55747-int-f-a-b), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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

revised to speed code up, and added a small a procedure to handle badly scaled functions

1.0.0.0