Linear Algebra Powertool
BASIC MATRIX OPERATIONS
Worksheet by Russell Blyth
> with(linalg):
Warning, the protected names norm and trace have been redefined and unprotected
Enter some matrices
> A:=matrix([[1,-2],[0,3]]);
> B:=matrix([[-3,4],[2,1]]);
Try to add A and B:
> A+B;
Maple treats matrices like functions rather than like variables which have values. You have to "evaluate to a matrix" using the evalm command:
> evalm(A+B);
Scalar multiplication:
> evalm(2*B);
Solve a matrix equation:
> evalm(solve(3*X+A=B,X));
Matrix multiplication uses a new operator, &*
> evalm(A&*B);
A matrix can be transposed:
> transpose(A);
Individual entries can be extracted (and computed with):
> d:=A[1,2];
>
>