Re: [sage-devel] Question about Free algebra

2015-06-09 Thread Nicolas Borie
Le 09/06/2015 06:50, Viviane Pons a écrit : 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

Re: [sage-devel] Question about Free algebra

2015-06-09 Thread Viviane Pons
The thing is: we actually need this specific implementation which is much quicker for what we're doing. So I'm going to look closer at the object and probably open a ticket to allow for such basic operation. Best Viviane 2015-06-09 2:24 GMT-05:00 Nicolas Borie nicolas.bo...@univ-mlv.fr: Le

Re: [sage-devel] Question about Free algebra

2015-06-09 Thread Viviane Pons
Yes, I actually figured that out after some time. We've opened a ticket here : http://trac.sagemath.org/ticket/18653 and I'm on it: doing basically what you're saying. Best Viviane 2015-06-09 12:32 GMT-05:00 John H Palmieri jhpalmier...@gmail.com: sage: list(X) [((1, 0, 0, 0, 0, 0, 0, 1, 0,

Re: [sage-devel] Question about Free algebra

2015-06-09 Thread John H Palmieri
sage: list(X) [((1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0), 1)] It looks like the tuple is a concatenation of 6 (one for each factor of X) tuples of length 6 (one for each generator): (1,0,0,0,0,0), (0,1,0,0,0,0), etc.,

[sage-devel] Question about Free algebra

2015-06-08 Thread Viviane Pons
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