Orthonormal Basis from QR Decomposition - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Orthonormal Basis from QR Decomposition (/thread-15150.html) |
Orthonormal Basis from QR Decomposition - victorvbc - 06-06-2020 03:39 PM Hello everyone, I'd like to ask for some help with a problem. I want to get an orthonormal basis from the matrix [[1,-1,1],[3,-1,-1],[1,1,-3]], which has one linearly dependent column, so I use the QR decomposition to factor the matrix into orthogonal and upper trapezoidal parts. This results in the following Q and R matrices: [attachment=8554] Unfortunately the Q matrix is singular, so I can't really use it. I know a decomposition with a complete orthogonal matrix is possible, from matlab: [attachment=8555] So, is there a way I can get this to work on the Prime? Edit: I've found a solution, It works if I use the uppercase QR() function. Thanks, -Victor. |