LSQ: Least Squares Subroutine
8-134

Kenneth B. Wibergl Yale University, New Haven,
Connecticut

The subroutine calculates the slope and intercept for the
equation yi = mxi + b by the method of least squares. It
also returns the rms deviation of y, the correlation coefficent
and an estimate of the error in the slope. The calculated
values of y and the differences between the given and
calculated values are also available on return from the subroutine.

Other Programs Needed:
FLOAT, floating point interpreter
"C" -(Digital 08-YQYA)

Source Language:
MACRO-8

Storage Requirement:
1.5 pages plus page 0 locations

Catalog: November 1969