This is a simple program I made for homework, the roots or zeros of the legendre's polinomials are used to integrate using the gauss quadrature, it works but it's still a bit uneficient, while I find a better way to use the roots.
Ulises Velasco (2022). Legendre Roots (https://www.mathworks.com/matlabcentral/fileexchange/8823-legendre-roots), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!