|
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]:= 
|