Ask Your Question

Revision history [back]

how about the following:

sage: m=matrix(RDF,[[1,1],[2,2]],sparse=True)
sage: m
[1.0 1.0]
[2.0 2.0]
sage: m.kernel()
Vector space of degree 2 and dimension 1 over Real Double Field
Basis matrix:
[ 1.0 -0.5]

Of course this will only work if your close to 0 eigenvalues are close enough to 0...