On 9/21/10 8:22 AM, miquel pericas wrote:
Hi Jason,

Thanks for the answer. I tried to play a little with the module that
you referred to in your message. It goes in the right direction, but
we have not been able to progress much. As you suggested, we are
declaring vectors as X by 1 and 1 by Y matrices, but the code seems
not to be prepared to understand a dot product between these two
"vectors". From the point of view of this package we are simply
generating a 1x1 matrix, which is of course not the same. Somebody
knows if there are newer versions of this module?

I have no experience in programming sage. Would it be difficult to
make such additions to the code?


It would probably be fairly straightforward. Of course, to do dot product, if you kept things as row and column vectors, you could always do v.transpose()*u for v dot u. If you wanted things to act like they do in Sage right now, then it might make sense to make a class like the one above (inherited from the one above, maybe?) that handles vectors appropriately (i.e., treats them as row vectors or column vectors as needed so that multiplication is the dot product).

I think this would be an interesting project to do (and something within the range of many undergraduate students). Unfortunately, I don't have the time to tackle it right now.

Thanks,

Jason

--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to