Originally posted by: rocadelpunk
linear algebra ftw?
Originally posted by: SaturnX
Oh, well I didn't realize you were looking for how to actually do it... all you do, define a Vandermonde matrix with the data and solve the linear system.
--Mark
Originally posted by: RaynorWolfcastle
It's been a while since I looked at it, but isn't this just a simple projection problem?
Originally posted by: chuckywang
Originally posted by: SaturnX
Oh, well I didn't realize you were looking for how to actually do it... all you do, define a Vandermonde matrix with the data and solve the linear system.
--Mark
A Vandermonde matrix spans the space of all polynomials. He just wants to do least squares on linear functions.