How to Use
Enter a matrix:
- A: m×n matrix
- Q: Orthogonal columns
- R: Upper triangular
Applications
- Least squares: Rx = Qᵀb (no AᵀA needed)
- QR algorithm: eigenvalues via repeated QR
- Numerical stability: better than normal equations
vs LU
LU: faster (n³/3 vs 2n³/3) but less stable. QR: numerically superior, works for non-square matrices, gives orthogonal basis. Use QR for least squares, LU for square system solving.
Step-by-Step Instructions
- 1Select a matrix.
- 2View Q (orthogonal).
- 3View R (upper tri).
- 4Verify QR = A.
- 5Verify QᵀQ = I.