How to use FreeAbelianGroup?
fricas
Z ==> Integer
Type: Void
fricas
A==>FreeAbelianGroup(M)
Type: Void
fricas
M==>Matrix Z
Type: Void
fricas
m1 := matrix [[1,2],[3,4]]
Type: Matrix(Integer)
fricas
m2 := matrix [[8,3]]
Type: Matrix(Integer)
fricas
m3 := matrix [[6],[7]]
Type: Matrix(Integer)
fricas
a1 := m1::A; a2:=m2::A;a3:=m3::A;
Type: FreeAbelianGroup
?(Matrix(Integer))
fricas
x1 := 2*a1+a2
Type: FreeAbelianGroup
?(Matrix(Integer))
fricas
x2 := 3*a1-5*a3
Type: FreeAbelianGroup
?(Matrix(Integer))
fricas
x1+x2
Type: FreeAbelianGroup
?(Matrix(Integer))