Description Usage Arguments Value Examples
Generate nodes and weights for Legendre-Gauss quadrature on [-1,1]. Note that t is a column vector and w is a row vector. Also normalizes and returns the eigenvectors of J so that they are samples of the unit-norm Legendre polynomials
1 | legendrequad(K)
|
K |
order of the Legendre quadraure |
a list containing, in order:
- t : points of the Legendre quadrature
- w : weigths for the Legendre quadrature
- Pbarmat : the eigenvectors of J
1 2 | K=30
res2 <- legendrequad(K)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.