Gauss-Legendre quadrature (source code)

= Gauss-Legendre quadrature
{c}

= Gauss–Legendre rule
{c}
{synonym}

Gauss-Legendre quadrature approximates an <integral> on a finite interval using nodes obtained from roots of a <Legendre polynomial>. With $n$ nodes it integrates every <polynomial> of degree at most $2n-1$ exactly.