Ask Your Question

Revision history [back]

Your W is not a vector but a list. If you want a vector you have to do the following :

sage: v=vector([1,2])
sage: v
(1, 2)
sage: 3*v
(3, 6)
sage: 
sage: v.column()
[1]
[2]

Laurent