# Why the function .cardinality() doesnt work with a permutation group ?

I have acode that use to run very good, but I dont know why no longer the basic functions works for my permutation groups, i.e Abelian, cardinality, order. Only degree seems to work

edit retag close merge delete

Sort by ยป oldest newest most voted

Could you tell us more ? What is your code ? Which version of Sage are you using ? Was it working before ? On which version ? As for me, i do not see any problem (on sage 6.8.beta4):

sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]])
sage: G.cardinality()
120
more

Hi Im using 6.3 A couple of week ago it used to work.

For example

sage: cube = PermutationGroup(["(3,2,6,7)(4,1,5,8)","(1,2,6,5)(4,3,7,8)", "(1,2,3,4)(5,6,7,8)"])
sage: cube
Permutation Group with generators [(1,2,3,4)(5,6,7,8), (1,2,6,5)(3,7,8,4), (1,5,8,4)(2,6,7,3)]
sage: cube.cardinality()
Traceback (most recent call last):
...
TypeError: Gap terminated unexpectedly while reading in a large line:
Gap produced error output
Error, file "/Users/hectorbanos/.sage/temp/MBP-de-Hector.banorte.com/902/interface/tmp909" must exist and be readable

( 2015-06-17 10:55:53 -0600 )edit

I tried your example and it worked, but I don't know why mine does not work.

( 2015-06-17 11:09:42 -0600 )edit

your problem seems related to your personal temporary files (within the /Users/hectorbanos/.sage/temp/ directory). You can try the following:

• stop Sage
• remove the /Users/hectorbanos/.sage/temp/ directory
• start Sage and try again
( 2015-06-17 12:02:25 -0600 )edit

Note that it works well for me :

sage: cube = PermutationGroup(["(3,2,6,7)(4,1,5,8)","(1,2,6,5)(4,3,7,8)", "(1,2,3,4)(5,6,7,8)"])
sage: cube
Permutation Group with generators [(1,2,3,4)(5,6,7,8), (1,2,6,5)(3,7,8,4), (1,5,8,4)(2,6,7,3)]
sage: cube.cardinality()
24
( 2015-06-17 12:03:39 -0600 )edit

I removed the remove the /Users/hectorbanos/.sage/temp/ directory but the error still stands. What else I can do?. By the way thanks for the help

( 2015-06-18 10:20:30 -0600 )edit