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

Documentation / Mathematica / Built-in Functions / Numerical Computation / Matrix Operations /

Further Examples: Inverse

Here is the inverse of a matrix, displayed as a matrix.

In[1]:=

Out[1]//MatrixForm=

If the matrix is singular, the inverse is not computed.

In[2]:=

Out[2]=

If the matrix is not square, the inverse is not computed.

In[3]:=

Out[3]=

You can compute inverses of inexact matrices.

In[4]:=

Out[4]//MatrixForm=

This checks that the error is of the same order as the roundoff errors.

In[5]:=

Out[5]=

The function Equal (==) cannot be used since A.B and IdentityMatrix[3] are not identical.

In[6]:=

Out[6]=

Here is the inverse of a matrix over the integers modulo .

In[7]:=

Out[7]//MatrixForm=

This checks the result.

In[8]:=

Out[8]//MatrixForm=

In[9]:=

See also PseudoInverse.

Using the Method option

Here is a somewhat sparse symbolic matrix.

In[10]:=

Using the method DivisionFreeRowReduction enables Inverse to compute the inverse of A quickly.

In[11]:=

Out[11]=

This checks the result.

In[12]:=

Out[12]=

In[13]:=



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


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