QRDecomposition

QRDecomposition[m]
yields the QR decomposition for a numerical matrix m. The result is a list , where q is an orthogonal matrix and r is an upper-triangular matrix.

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Compute the QR decomposition for a 3×2 matrix with exact values:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Compute the QR decomposition for a 2×3 matrix with approximate numerical values:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
New in 2
New to Mathematica? Find your learning path »
Have a question? Ask support »