legendrequad: Auxiliary function that compute the Legendre quadrature of order K
Description
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