Inverse
Usage
• Inverse[m]给出一个方阵 m的逆。
Notes
• Inverse用在符号和数值矩阵。
• 对一个近似实数或复数矩阵,给定输入,产生的逆矩阵有最大可能的精度。 • Inverse[m, Modulus->n] 计算模 n的逆。 • Inverse[m, ZeroTest -> test] 计算 test[ m[[i, j]] ] 确定矩阵元素是否为零。缺省设置是 ZeroTest -> (# 0 &). • 也能给出Method 选项。可能的设置是关于LinearSolve的.
Further Examples
The inverse of a 2 x 2 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 inverse of inexact matrices.
In[4]:=
|
Out[4]//MatrixForm=
|
Here is the inverse over the integers modulo 5.
In[5]:=
|
Out[5]//MatrixForm=
|
This checks the result.
In[6]:=
|
Out[6]//MatrixForm=
|
|