Least-Sqaure Fit Demo;Solving a Set of Equations

Category:
Dates and Math
Type:
Modules
Difficulty:
Advanced
Author:
Peter Wester

Version Compatibility: Visual Basic 6

More information:
This programs demonstrates the fitting of data to a polynomial, according to the 'least-square' methods. The correlation coefficient is part of the results. The maths behind it, is described in an accompanied pdf file.

The module calculating the polynomial coefficients, uses another routine to solve a set of equations based on matrix calculations. This routine can also be used as a separate one.


Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download lsquare.zip