# Approximation using Legendre polynomials

my aim is to fit data points by the use of Legendre Polynomials. Has anybody experience with this task? My final aim is to do this automatically with mathematica.

Thanks, rainer

-
"My final aim is to do this automatically with mathematica" - Look up Fit[] –  Guess who it is. Aug 20 '12 at 8:00

You've forgotten the constant term: Fit[data, {1, LegendreP[1, x], LegendreP[2, x], LegendreP[3, x]}, x] –  Guess who it is. Aug 21 '12 at 0:51