int(f,a,b)

This program computes the integral of f(x) from x=a to x=b using an adaptive Simpson's rule.

You are now following this Submission

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 (2026). int(f,a,b) (https://uk.mathworks.com/matlabcentral/fileexchange/55747-int-f-a-b), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Numerical Integration and Differential Equations in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
2.0.0.0

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

1.0.0.0