Math 218: Matrices and Vectors

Welcome! You have found the homepage of the Summer 2024 manifestation of Math 218.

Matrices and Vectors

Sage is an open source computer algebra system written python.

Matrices are defined as lists of rows via the syntax A = matrix([(1, 2, 3), (4, 5, 6)]).

Matrices can be summed A + B, scaled c * A, and transposed A.T.

The trace of an nxn matrix A can be calculated with A.trace().

Vectors are defined with the syntax vector([coordinate list]).

Vectors can be scaled c*v and summed v+w.