int(f,a,b)

This program computes the integral of f(x) from x=a to x=b using an adaptive Simpson's rule.
76 Downloads
Updated 9 Mar 2016

View License

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 Linux
Categories
Find more on Numerical Integration and Differential Equations in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
2.0.0.0

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

1.0.0.0