Hello,

Any one know how to code up a simple function to find the Least Squared Error for an array if values. Have looked at math and seems really complex.

Say:

Many thanksCode:double ReturnLeastSquaredError( int Items, double Data[] ) { ?????????????? }