Numerical Integraton Tool with GUI

Contains following methods: Simpsons, Simpsons 3/8, Monte Carlo, Trapezoidal.
604 Downloads
Updated 7 Nov 2014

View License

This is just a basic numerical integration tool that allows the user to set a function y(x) and the x range where the integral should be calculated. I started doing it just to see how the Monte Carlo Integration Method worked, but expanded it to Simpsons and Trapezoidal, which allowed me to verify the reliability of the methods.
Monte Carlo is a very good method for any function. It depends solely on the number of random points which you "plot" on the graph. (You may change the number of points in the code - Nt).

Simpsons Method uses polynomial approximation to calculate the integral, therefore is not good for functions that vary a lot.

Trapezoidal Rule is the most simple type of numerical integration, but if you increase the number of trapezoids, it gives you a very good approximation of the integral of any function.

The code lack commentaries, as I was not thinking of uploading it when I began to work on it, so I am sorry for that.

Please feel free to ask questions about the code or suggest any modification that might reduce the process time for larger numbers of internal points on Monte Carlo and trapezoids on Trapezoidal Rule.

Cite As

Amir John Scheid (2024). Numerical Integraton Tool with GUI (https://www.mathworks.com/matlabcentral/fileexchange/48382-numerical-integraton-tool-with-gui), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
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!

Integration Method/

Version Published Release Notes
1.0.0.0