Mathematica
Remove["Global`*"]; m={{3,-1,1,1,0,0}, {1, 1,-1,-1,0,0}, {0,0,2,0,1,1}, {0,0,0,2,-1,-1}, {0,0,0,0,1,1}, {0,0,0,0,1,1}}; MatrixForm[m]
|
|
{a,b}=JordanDecomposition[m]; b
| |
Matlab
clear all; A=[3 -1 1 1 0 0; 1 1 -1 -1 0 0; 0 0 2 0 1 1; 0 0 0 2 -1 -1; 0 0 0 0 1 1; 0 0 0 0 1 1;] jordan(A)
|
ans = 0 0 0 0 0 0 0 2 1 0 0 0 0 0 2 1 0 0 0 0 0 2 0 0 0 0 0 0 2 1 0 0 0 0 0 2 |
Maple
restart; A:=Matrix([[3,-1,1,1,0,0], [1, 1,-1,-1,0,0], [0,0,2,0,1,1], [0,0,0,2,-1,-1], [0,0,0,0,1,1], [0,0,0,0,1,1]]); LinearAlgebra:-JordanForm(A);
|
|