llsq, a Python code which solves the linear least squares (LLS) problem of finding the formula of a straight line y=a*x or y=a*x+b which minimizes the root-mean-square (RMS) error to a set of N data points.
The information on this web page is distributed under the MIT license.
llsq is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.
gradient_descent, a Python code which uses gradient descent to solve a linear least squares (LLS) problem.
test_lls, a Python code which implements linear least squares (LLS) test problems of the form A*x=b.