A GUIDE TO MAPLE

LESSON 2 - LINEAR ALGEBRA

> with(linalg):

1. Define a matrix.
>
A:=matrix([[1,2],[3,4]]);

[Maple Math]

2. Obtain the determinant of the matrix.
>
det(A);

[Maple Math]

3. Find the adjoint of the matrix.
>
adj(A);

[Maple Math]

4. Find the transpose of the matrix.
>
transpose(A);

[Maple Math]

5. Find the inverse of the matrix.
>
inverse(A);

[Maple Math]

> evalf(%);

>

[Maple Math]

6. Find the minor of an element.
>
minor(A,1,2);

[Maple Math]

7. Define another matrix.
> B:=matrix([[3,0],[4,6]]);

[Maple Math]

8. Addition of matrices
>
C:=matadd(A,B);

[Maple Math]

9. Matrix multiplication
>
E:=multiply(A,B);

[Maple Math]


EC 309 home