1. Suppose I have a tensor product X = V tensor W of appropriate objects 
(instances of CombinatorialFreeModule, for example). How can I retrieve V 
and W from X?

2. Suppose I have a basic tensor x = v tenor w in V tensor W. How can 
retrieve v and w from x?

For example, if A is your favorite Hopf algebra, b is an element of A, and 
x is a summand of b.coproduct():

sage: QSym = QuasiSymmetricFunctions(QQ)
sage: b = QSym.an_element()
sage: y = b.coproduct()
sage: x = y.terms()[0]
sage: x
3*M[1, 1] # M[]


At this point I want a command like x.tensor_factors() that returns 
(M[1,1], M[]). Along the same lines, how do I retrieve the tensor factors 
of x.parent()?

There are no obvious methods available. Are there non-obvious methods that 
will do this?

-- 
John

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

Reply via email to