Math 781: Matrices and Data

Welcome! You have found the homepage of the Spring 2025 manifestation of Math 781.

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.