Thx, this is it!

On Jan 24, 12:01 pm, David Joyner <wdjoy...@gmail.com> wrote:
> On Tue, Jan 24, 2012 at 9:57 AM, Dox <o.castillo.felis...@gmail.com> 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?
>
> Do you mean the tensor product?
>
> sage: u1 = vector([1,2,3])
> sage: u2 = vector([-1,1,2])
> sage: u1.tensor_product(u2)
> [-1  1  2]
> [-2  2  4]
> [-3  3  6]
>
>
>
>
>
>
>
>
>
> > Thank you guys!
>
> > DOX.
>
> > --
> > 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 
> > athttp://groups.google.com/group/sage-devel
> > URL:http://www.sagemath.org

-- 
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

Reply via email to