Formula for computing the least squares solution to a linear system, in terms of the QR factorization of the coefficient matrix.

math.la.t.linsys.leastsquares.qr