https://www.bragitoff.com/2015/09/c-program-to-linear-fit-the-data-using-least-squares-method/linear_fit_output/
linear_fit_output