All courses › Numerical Methods › Splines and Gaussian quadrature
Splines and Gaussian quadrature
A spline is a piecewise polynomial that is smooth across the joints between pieces; cubic splines are most common and avoid Runge's phenomenon. Gaussian quadrature is an integration method that chooses points and weights optimally, so that points give an exact answer for polynomials up to degree .
Gaussian quadrature with optimally chosen points and weights
Symbols
| quadrature points (not evenly spaced) | ||
| the weight of each point |
Example
With points, Gaussian quadrature gives an exact answer for all polynomials up to degree .
Gaussian quadrature needs far fewer points than trapezoid/Simpson for the same accuracy, but the points are not evenly spaced.
Practise interpolation and integration for free →