It would be helpful if the components of a vector could be expanded and 
simplified.  Right now this happens:

sage: p,q,r = var('p,q,r')
sage: v = vector([(p+q)*r, (p-q)*r])
sage: w = vector([p*r+q*r, p*r-q*r])
sage: v
((p + q)*r, (p - q)*r)
sage: expand(v)
((p + q)*r, (p - q)*r)
sage: v-w
((p + q)*r - p*r - q*r, (p - q)*r - p*r + q*r)
sage: simplify(v-w)
((p + q)*r - p*r - q*r, (p - q)*r - p*r + q*r)
sage: (v-w).is_zero()
False


Would this involve anything more complicated than adding a method to the 
vector class so that v.expand() gives vector(map(expand,list(v)))?

-Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to