I am trying to have sage list the elements of a (finite) finitely generated 
matrix group.  It does not work on the cloud or on 6.1.1 on my linux 
desktop, but does work on 5.9 on a mac.  

Here is what I am trying to run:

x=polygen(QQ,'x')
E.<w>=NumberField(x^2+x+1,'w')  

r=matrix([[w,0],[-w^2,1]])
s=matrix([[1,w^2],[0,w]])

G4 = MatrixGroup([r,s])
l = G4.list()  # should return the elements of G as a list

Here is the error message on the cloud:

Traceback (most recent call last):
  File 
"/projects/00f50bac-d0a4-44e5-b456-34ae18b9117d/.sagemathcloud/sage_server.py", 
line 733, in execute
    exec compile(block+'\n', '', 'single') in namespace, locals
  File "", line 1, in <module>
  File "parent.pyx", line 822, in sage.structure.parent.Parent.__getattr__ 
(sage/structure/parent.c:6997)
  File "misc.pyx", line 251, in sage.structure.misc.getattr_from_other_class 
(sage/structure/misc.c:1606)
AttributeError: 'FinitelyGeneratedMatrixGroup_generic_with_category' object has 
no attribute 'list'



Here is the error message from 6.1.1 on a linux machine:

AttributeError                            Traceback (most recent call last)
<ipython-input-9-a6e94ecf7e4a> in <module>()
----> 1 G4.list()

/opt/sage-6.1.1-x86_64-Linux/local/lib/python2.7/site-packages/sage/structure/parent.so
 
in sage.structure.parent.Parent.__getattr__ (sage/structure/parent.c:6997)()

/opt/sage-6.1.1-x86_64-Linux/local/lib/python2.7/site-packages/sage/structure/misc.so
 
in sage.structure.misc.getattr_from_other_class 
(sage/structure/misc.c:1606)()

AttributeError: 'FinitelyGeneratedMatrixGroup_generic_with_category' object 
has no attribute 'list'


As I mentioned before, it works on 5.9 and "l" returns the 24 elements of 
the matrix group in a list.  Also, the newer version can not run 
G4.is_finite(), whereas the old version does. This leads me to believe that 
somewhere between 5.9 and the current release there were changes which 
broke the matrix group functionality. 

One more thing about this.  In 6.1.1, type(G4) returns:
<class 
'sage.groups.matrix_gps.finitely_generated.FinitelyGeneratedMatrixGroup_generic_with_category'>
But in 5.9 it returns:
<class 
'sage.groups.matrix_gps.finitely_generated.FinitelyGeneratedMatrixGroup_gens_with_category'>

Best,
Ben

-- 
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 [email protected].
To post to this group, send email to [email protected].
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