Least squares approximation

Least squares approximation of continuous functions on [-1,1] using Legendre and Chebyshev polynomials.[br][br]Things to try:[br][br][list][*]Change the function f(x) defined on the interval [-1,1].[br][/*][*]Drag the slider to approximate. [br][/*][/list]

Information: Least squares approximation