NullSpace
Usage
• NullSpace[m]给出一个由矩阵m的零空间的基底构成的向量列表.
Notes
• NullSpace既适用于数值矩阵,又适用于符号矩阵. • NullSpace[m, Modulus->n]给出整数矩阵模 n 的零空间. • NullSpace[m, ZeroTest -> test] 对 test[ m[[i, j]] ] 进行计算以判断矩阵元素是否为零. 它的缺省设置是ZeroTest -> Automatic. • NullSpace中也可以给出Method可选项.可用的设置见LinearSolve.
Further Examples
This matrix is nonsingular.
In[1]:=
|
Out[1]=
|
The nullspace of a nonsingular matrix is trivial. In other words, there is no nonzero vector such that .
In[2]:=
|
Out[2]=
|
This nullspace has dimension .
In[3]:=
|
Out[3]=
|
This checks the result.
In[4]:=
|
Out[4]=
|
These two vectors span the nullspace of the x matrix.
In[5]:=
|
Out[5]=
|
Multiplying any linear combination of these vectors by the matrix gives the zero vector.
In[6]:=
|
Out[6]=
|
This simplifies the expression.
In[7]:=
|
Out[7]=
|
The rank of the matrix is the difference between the dimension of the range and the dimension of the nullspace.
In[8]:=
|
Out[8]=
|
In[9]:=
|
|