On Thursday, July 5, 2012 3:42:54 PM UTC-7, Peng Yu wrote:
>
> On Thu, Jul 5, 2012 at 3:27 PM, Jorge Garcia wrote: 
> > Construct row vector objects and apply the dot() method! 
>
> I don't find the dot() method. Would you please let me know where it is? 
>
> I think that it is the case, but just to make sure. Is the object 
> constructed by vector() a row vector? 
>

Do this:

   sage: v = vector([1,2])

Now type "v." and hit the TAB key. One of the entries will be 
"dot_product". So do

   sage: v.dot_product(v)
   5

Using the TAB key is a very useful feature of Sage.

-- 
John

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