Previous Up Next

15.1.7  Equivalent matrix

The changebase command changes a matrix to represent the same linear function in a different basis.

Examples

changebase([[1,2],[3,4]],[[1,0],[0,1]])
     
⎡
⎢
⎣
12
34
⎤
⎥
⎦
          
changebase([[1,1],[0,1]],[[1,2],[3,4]])
     
⎡
⎢
⎢
⎢
⎢
⎣
−5−8
9
2
7
⎤
⎥
⎥
⎥
⎥
⎦
          

Indeed:

  
⎡
⎢
⎣
12
34
⎤
⎥
⎦
−1


 
·
⎡
⎢
⎣
11
01
⎤
⎥
⎦
·
⎡
⎢
⎣
12
34
⎤
⎥
⎦
=
⎡
⎢
⎢
⎢
⎢
⎣
−5−8
9
2
7
⎤
⎥
⎥
⎥
⎥
⎦
.

Previous Up Next