On 03/24/2010 07:09 PM, David Joyner wrote:
You can use
sage: v = vector([1,2,3])
sage: w = vector([1,1,-4])
sage: w.dot_product(v)
-9
Even easier is w*v (which defaults to the dot product for vectors).
Jason
--
You received this message because you are subscribed to the Google Groups
"sage-edu" group.
To post to this group, send email to sage-...@googlegroups.com.
To unsubscribe from this group, send email to
sage-edu+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sage-edu?hl=en.