The following code generates an attribute error:

kQ = FreeAlgebra(QQ ,2 , 'x')
mons = [kQ.gens()[0], kQ.gens()[1], kQ.gens()[0]*kQ.gens()[1]]
mats = [Matrix(QQ,3,[1, 0, 0, 0, 1, 0, 0, 0, 0]), Matrix(QQ, 3, [0, 0,
0, 0, 0, 0, 0, 0, 1])]
A = FreeAlgebraQuotient(kQ, mons, mats, 'x')
A.gens()[0]*A.gens()[1]

Specifically it is the last line when you try and multiply those two
generators.  If you add them or multiply one by a scalar then there is
no error.  The error is:

AttributeError: 'FreeAlgebraElement' object has no attribute
'_element_list'

I do not know enough about sage to know if this is a bug or if this is
a problem with my code.  When I look at FreeAlgebraQuotient? there is
example code that includes multiplication of elements and it doesn't
generate an error, but I would think if there was an error in my code
then it wouldn't be able to add and multiply by scalars either.

I would appreciate it if someone else would take a look and tell me if
this is a bug that I should report or if I've made a mistake in my
code.

-Jim Stark

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

Reply via email to