Gaussian quadratures for several orthogonal polynomials

Version 1.1.0.0 (4,87 KB) von Felipe
This function calculates the zeros and weights of several orthogonal polynomials
572 Downloads
Aktualisiert 17 Okt 2014

Lizenz anzeigen

The function calculates the zeros and weights of several orthogonal polynomials to be used in particular numerical integration problems. The quadrature rules implemented are the Hermite (probabilist-type), Hermite (physicist-type), Legendre, Chebyshev and Laguerre.
An interesting contribution is the (probabilist-type) Gauss-Hermite quadrature, which is validated through an example by comparing the results of the numerical integration with the moments of a standard Gaussian variable (see 'examples' section). Furthermore, the function displays two figures, the first shows roots vs. weights, and the second shows the corresponding orthogonal polynomials up to the specified order m.

Finally, it can be seen that other orthogonal polynomials can be easily included in the function (case ...) due to the general implementation of the weight's formula.
-----------------------------------------------------------
1. Input: * m - number of quadrature points
* type - orthogonal polynomial:
'he_prob': Hermite probabilist
'he_phys': Hermite physicist
'legen' : Legendre
'cheby' : Chebyshev
'lague' : Laguerre
2. Output: * xi - zeros
* w - weights
-----------------------------------------------------------

Zitieren als

Felipe (2024). Gaussian quadratures for several orthogonal polynomials (https://www.mathworks.com/matlabcentral/fileexchange/48144-gaussian-quadratures-for-several-orthogonal-polynomials), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2013a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Polynomials finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.1.0.0

Minor changes

1.0.0.0