Disclaimer: This is a copy from the original page found there: http://www.akiti.ca/LinLeastSqPoly4.html
Super useful but a real pain to use so I rewrote the UI part! ^^
This page contains a linear least-squares data-fitting utility.
The function to be fit to the data is a polynomial expression of degree four or less.
Specify the degree of the polynomial to be fit to the data.
Author: Stephen Nash, George Mason University
From the book "Numerical Methods and Software" by
D. Kahaner, C. Moler, and S. Nash
Prentice Hall, 1988
Dongarra, J. J.; J.R. Bunch; C.B. Moler; and G.W. Stewart.
"LINPACK User's Guide"