Previous Up Next

15.1.11  Kernel of a linear function

The ker or kernel or nullspace command finds a basis for the kernel of a linear function.

Example

ker([[1,1,2],[2,1,3],[3,1,4]])
     
⎡
⎣
11−1
⎤
⎦
          
Remark.

The Nullspace command is only useful in Maple mode. (See Section 2.5.2; you can get into Maple mode by hitting the state line red button then Prog style, then choosing Maple and clicking Apply.)

Examples

Nullspace([[1,1,2],[2,1,3],[3,1,4]])
     
nullspace⎛
⎜
⎜
⎝
⎡
⎢
⎢
⎣
112
213
314
⎤
⎥
⎥
⎦
⎞
⎟
⎟
⎠
          

Input in Maple mode:

Nullspace([[1,2],[3,1]]) mod 5
     
⎡
⎣
2,−1⎤
⎦
          

In Xcas mode, the equivalent input is:

nullspace([[1,2],[3,1]] % 5)
     
⎡
⎣
2%5−1
⎤
⎦
          

Previous Up Next