Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Documentation / Mathematica / Built-in Functions / Lists and Matrices / Matrix Operations /

Further Examples: QRDecomposition

Performing a QR decomposition on this x matrix yields a pair of matrices.

In[1]:=

In[2]:=

Out[2]=

This checks the result.

In[3]:=

Out[3]//MatrixForm=

In[4]:=

Out[4]=

The same can be done for inexact matrices.

In[5]:=

In[6]:=

Out[6]=

This checks the result.

In[7]:=

Out[7]=

In[8]:=

Using QRDecomposition to get least-squares solutions of overdetermined systems

Here is a x matrix and a ­vector.

In[9]:=

In[10]:=

The following system of equations is overdetermined.

In[11]:=

Out[11]=

This uses QRDecomposition to give a least-squares solution.

In[12]:=

In[13]:=

Out[13]=

This shows how close is to rhs.

In[14]:=

Out[14]=

In[15]:=



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information


 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] |
Sign up for our newsletter: