Hi everyone,

I'm doing this:

sage: FreeA.<a,b,c,d,e,f> = FreeAlgebra(QQ,implementation="letterplace")
sage: P = a*b*a*c*c*b + a*b*a*d*d*b + a*c*a*d*d*c + b*c*b*d*d*c
sage: X = P.lm()
sage: X
a*b*a*c*c*b

And now I would like a way to "cut" my element X into two factors of a
given size. Something like

sage: u,v = X[:2],X[2:]

with then u=a*b and v = a*c*c*d

except this doesn't work (no __getitem__ on X). I have looked a bit, but I
cannot find how to do this even though it seems quite a natural operation.
I must say, I don't even understand the datastructure of X, list(X) doesn't
give me something I can easily read or transform into a word or anything...

If someone knows about this, I would appreciate the help.

Thank you

Best

Viviane

-- 
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to