Ask Your Question

Revision history [back]

Column space of a matrix

Hello Everyone,

I am new to Sage, and I am trying to use its linear algebra capabilities.

As a first exercise, I am trying to compute the column space of a matrix: A = matrix([[1,3,8],[1,2,6],[0,1,2]])

According to the documentation, the column space of A is given by A.column_space(). This function returns me:

  • Vector space of degree 3 and dimension 2 over Rational Field Basis matrix: [ 1 0 1] [ 0 1 -1]

when I was expecting [1 3] [1 2] [0 1]

I clearly missed something. Any clues? With Maxima, I got the expected colum space.

I thank you in advance for any help.

Best,