gaussleg
Version 1.0.0.0 (1.98 KB) by
Matt Fig
Calculates the integral of function f from a to b using ngp Gauss points.
gaussleg(f,a,b,ngp)
I have found that this is on average +20 times faster than 'Gauss-Legendre' file(4560), and easier to read because it is shorter.
Cite As
Matt Fig (2024). gaussleg (https://www.mathworks.com/matlabcentral/fileexchange/7499-gaussleg), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R13SP1
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
Inspired by: Gauss-Legendre
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.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | The last update didn't work... This seems to be a problem. |