Polynomial approximation

Approximation of functions using:
  • Legendre and Chebyshev polynomials on the interval [-1,1].
  • Cosine and Sine series on the interval [0,pi].
Things to try:
  • Change the function f(x).
  • Select an option to approximate: Legendre, Chebyshev, Cosine or Sine.
  • Drag slider to approximate.
Notice that the approximation is WRONG, since the first three coefficients are zero by default in the simulation. Enter the first three coefficients to calculate the CORRECT approximation.