15 September 2021 8:27:08.541 AM LLSQ_TEST FORTRAN90 version Test the LLSQ library. TEST01 LLSQ can compute the formula for a line of the form y = A * x + B which minimizes the RMS error to a set of N data values. Estimated relationship is y = 61.2722 * x + -39.0620 Expected value is y = 61.272 * x - 39.062 I X Y B+A*X |error| 1 1.4700 52.2100 51.0082 -1.2018 2 1.5000 53.1200 52.8463 -0.2737 3 1.5200 54.4800 54.0718 -0.4082 4 1.5500 55.8400 55.9099 0.0699 5 1.5700 57.2000 57.1354 -0.0646 6 1.6000 58.5700 58.9735 0.4035 7 1.6300 59.9300 60.8117 0.8817 8 1.6500 61.2900 62.0372 0.7471 9 1.6800 63.1100 63.8753 0.7653 10 1.7000 64.4700 65.1008 0.6308 11 1.7300 66.2800 66.9389 0.6589 12 1.7500 68.1000 68.1644 0.0644 13 1.7800 69.9200 70.0025 0.0825 14 1.8000 72.1900 71.2280 -0.9620 15 1.8300 74.4600 73.0661 -1.3939 RMS error = 0.706661 TEST02 LLSQ0 can compute the formula for a line of the form y = A * x which minimizes the RMS error to a set of N data values. Estimated relationship is y = 0.641657 * x I X Y A*X |error| 1 0.0000 0.0000 0.0000 0.0000 2 0.1000 0.0865 0.0642 -0.0223 3 0.1500 0.1015 0.0962 -0.0053 4 0.2000 0.1106 0.1283 0.0177 5 0.2500 0.1279 0.1604 0.0325 6 0.3000 0.1892 0.1925 0.0033 7 0.3500 0.2695 0.2246 -0.0449 8 0.4000 0.2888 0.2567 -0.0321 9 0.4500 0.2425 0.2887 0.0462 10 0.5000 0.3465 0.3208 -0.0257 11 0.5500 0.3225 0.3529 0.0304 12 0.6000 0.3764 0.3850 0.0086 13 0.6500 0.4263 0.4171 -0.0092 14 0.7000 0.4562 0.4492 -0.0070 RMS error = 0.251999E-01 LLSQ_TEST Normal end of execution. 15 September 2021 8:27:08.541 AM