On 9/12/12 12:23 PM, William Stein wrote:
To me (who prob. implemented this) the asterisk in v*v means "dot product".
If you look at the code, you'll see it starts:
if have_same_parent(left, right):
return (<Vector>left)._dot_product_(<Vector>right)
There is a completely different method called "inner_product":
sage: v.inner_product(v)
This definition of dot product in Wikipedia makes it crystal clear
that many people would not count the Hermitian inner product as the
dot product: "In mathematics, the dot product, or scalar product (or
sometimes inner product in the context of Euclidean space), is an
algebraic operation that takes two equal-length sequences of numbers
(usually coordinate vectors) and returns a single number obtained by
multiplying corresponding entries and then summing those products. "
Fair enough. That's convincing to me. I wish there was a nice notation
in Sage for v.inner_product(w) that wasn't so cumbersome and wordy, then!
Thanks,
Jason
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.