Factor \(A\) into \(A=QR\) using modified Gram–Schmidt, where \(Q\) has orthonormal columns and \(R\) is upper triangular. Includes checks for orthonormality (\(Q^TQ\approx I\)) and reconstruction (\(QR\approx A\)). Optional solve: \(Ax=b\) (least-squares if \(m>n\)).
qR Decomposition Preview
Math Linear Algebra • Matrices and Systems of Equations
Modified Gram–Schmidt animation
Shows how \(Q\) and \(R\) are built column-by-column. Pivot cell indicates the current \(r_{jk}\) being written.
Q
R
current entry
current column
Enter \(A\) (and optionally \(\mathbf{b}\)) and click “Calculate”.