[sage-devel] Re: accessors for FreeAlgebraElement

2009-05-12 Thread William Stein
On Tue, May 12, 2009 at 12:50 AM, Florent Hivert wrote: > >      Dear All, > > It seems that FreeAlgebraElement is missing some accessors: > It is very easy to create elements: >    sage: sage: A.=FreeAlgebra(ZZ,3) >    sage: bla = -x+3*y*z >    sage: bla >    -x + 3*y*z > but I can't find any wa

[sage-devel] Re: accessors for FreeAlgebraElement

2009-05-12 Thread Florent Hivert
Dear William, > FreeAlgebraElement was written in 2005, and nobody has worked on it since. > Maybe now it is your turn. Or my student's :). That was my intention ! The obvious question is now the naming convention. It seems to me that we should stick as close as possible to polynomials: s

[sage-devel] Re: accessors for FreeAlgebraElement

2009-05-12 Thread William Stein
On Tue, May 12, 2009 at 7:56 AM, Florent Hivert wrote: > >      Dear William, > >> FreeAlgebraElement was written in 2005, and nobody has worked on it since. >> Maybe now it is your turn. > > Or my student's :). That was my intention ! The obvious question is now the > naming convention. It seems

[sage-devel] Re: accessors for FreeAlgebraElement

2009-05-12 Thread Nick Alexander
On 12-May-09, at 7:56 AM, Florent Hivert wrote: > > Dear William, > >> FreeAlgebraElement was written in 2005, and nobody has worked on it >> since. >> Maybe now it is your turn. > > Or my student's :). That was my intention ! The obvious question is > now the > naming convention. It se

[sage-devel] Re: accessors for FreeAlgebraElement

2009-05-13 Thread David Kohel
Hi Florent, I think the polynomial ring model should translate well to the non-commutative free algebras. In addition to access, specifying a (non-commutative) monomial ordering would be desirable. Generalizing these orderings is the only challenge in the generalization from free commutative al

[sage-devel] Re: accessors for FreeAlgebraElement

2009-05-13 Thread Florent Hivert
Dear William, > > Or my student's :). That was my intention ! The obvious question is now the > > naming convention. It seems to me that we should stick as close as possible > > to > > polynomials: > > > > sage: ring = ZZ['x1,x2'] > > sage: x1 = ring.gens()[0]         # why x1 is not defin

[sage-devel] Re: accessors for FreeAlgebraElement

2009-05-13 Thread Florent Hivert
Dear David, > I think the polynomial ring model should translate well > to the non-commutative free algebras. In addition to > access, specifying a (non-commutative) monomial > ordering would be desirable. Generalizing these > orderings is the only challenge in the generalization > from f