Least Squares fit to Legendre Polynomial



Hello

I'm doing a physics experiment in which we measure the angular correlation
of scattered gamma rays.
The theoretical angular distribution is expressed in terms of a truncated
series of Legendre Polynomials and one objective of the experiment is to
compare theoretical and experimental values for the coefficients in this
series.

So, if I have a set of data points V_i, U_i (where Ui = cos(theta_i), how
can I find the coefficients A_n which minimise the least squares error
between my data points and Sum (A_n * P_n(U_i)) where P_n is the Legendre
Polynomial of degree n and n goes from 0 to 4.

Any help or pointers would be greatly appreciated.
(Any Matlab code would be really good)

Thanks
Fred


.



Relevant Pages

  • Re: Least Squares fit to Legendre Polynomial
    ... of scattered gamma rays. ... The theoretical angular distribution is expressed in terms of a truncated ... series of Legendre Polynomials and one objective of the experiment is to ... can I find the coefficients A_n which minimise the least squares error between my data points and Sum ) where P_n is the Legendre Polynomial of degree n and n goes from 0 to 4. ...
    (sci.math.num-analysis)
  • Re: Least Squares fit to Legendre Polynomial
    ... The theoretical angular distribution is expressed in terms of a truncated ... series of Legendre Polynomials and one objective of the experiment is to ... can I find the coefficients A_n which minimise the least squares error between my data points and Sum ) where P_n is the Legendre Polynomial of degree n and n goes from 0 to 4. ... (Any Matlab code would be really good) ...
    (sci.math.num-analysis)
  • Re: Least Squares fit to Legendre Polynomial
    ... >I'm doing a physics experiment in which we measure the angular correlation ... >of scattered gamma rays. ... >The theoretical angular distribution is expressed in terms of a truncated ... >compare theoretical and experimental values for the coefficients in this ...
    (sci.math.num-analysis)