int(f,a,b)
Version 2.0.0.0 (4.51 KB) by
Mark Holmes
This program computes the integral of f(x) from x=a to x=b using an adaptive Simpson's rule.
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.
Cite As
Mark Holmes (2024). int(f,a,b) (https://www.mathworks.com/matlabcentral/fileexchange/55747-int-f-a-b), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2016a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Numerical Integration and Differential Equations in Help Center and MATLAB Answers
Tags
Acknowledgements
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.