Last Updated 10/31/2022

Sage Essentials
Section 7: Matrix Manipulations

Matrix Operations

We use the usual “+”, “-”, and “*” operators for matrix Addition, Subtraction, and Scalar Multiplications.

Example 1

Compute the sum and difference of the two matrices A=[ 1 0 1 1 ]  and B=[ 0 1 1 1 ] .

Compute 5A .

Try this!

For the matrices A  and B defined above, compute 2AB .


← Previous Example Next Example →