On 1/24/12 9:06 AM, Jason Grout wrote:
On 1/24/12 8:57 AM, Dox wrote:
Hi everyone,
Today I rediscover a "problem" with the product of vectors.
I've defined two vectors u1 and u2,
sage: u1 = vector([a,b,c])
sage: u2 = vector([d,f,g])
then I try to construct the matrix u1*u2.column()
sage: M = u1*u2.column()
sage: show(M)
but it interprets the command as a vector product and gives and
scalar, instead of a matrix.
How can this be solved?
u1.row()*u2.column()
Wait; if you want a matrix, then maybe you want u1.column()*u2.row()?
Jason
--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org