Hi all,

this creates an error :

sage: G= SymmetricGroup(5)
sage: A= GroupAlgebra(G)
sage: x, y= G.gens()
sage: A ( A(x) )
...
TypeError: Don't know how to create an element of Group algebra of
group "SymmetricGroup(5)" over base ring Integer Ring from (1,2,3,4,5)

although A(x) works. I have tried to do this :

class my_gp_alg(GroupAlgebra):
    def __call__(self, x):
        try :
            ans=
sage.algebras.group_algebra.GroupAlgebra.__call__(self, x)
        except TypeError :
            ans= x

        return ans

which allows me to go A(A(x)), if A= my_gp_algebra(G). However the
following still fails:

sage: gl= MatrixSpace(A, 2)
sage: M= gl([A(x), 0, 0, A(y)])

same error message. The last line would work with x and y instead of
A(x) and A(y), but then there are more errors coming up shortly if i
try to compute anything.

thoughts anyone ?
thanks!
pierre

PS this is sage 4.2.1, i'll try to upgrade (but this takes hours and i
need to use sage right now!)


-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to