FEATool  v1.6
Finite Element Analysis Toolbox
 All Files Functions Pages
gaussleg.m File Reference

Description

GAUSSLEG Computes Gauss-Legendre quadrature.

[ X, W ] = GAUSSLEG( N ) Computes Gauss-Legendre quadrature on the interval [1,-1] for N points and returns the evaluation coordinates in X and the weights in W. (algorithm from L. N. Trefethen, Spectral Methods in MATLAB, SIAM, 2000.)