Session 3.4 Using the Linear Algebra Package for Simple Operations

> restart;

> a:=array([[1,2],[3,4],[5,6]]);

[Maple Math]

> b:=array([[x,x],[y,y],[z,z]]);

[Maple Math]

> with(linalg):

Warning, new definition for norm

Warning, new definition for trace

> matadd(a,b);

The addition of two matrices

[Maple Math]

> transpose(a);

The transpose of matrix a

[Maple Math]

> multiply(transpose(a),b);

Multiply the transpose of matrix a with matrix b

[Maple Math]

>