Ask Your Question
0

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

asked 2015-06-17 08:05:34 +0100

hbanos gravatar image

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 flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-06-17 13:15:42 +0100

tmonteil gravatar image

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
edit flag offensive delete link more

Comments

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

   executing Read("/Users/hectorbanos/.sage/temp/MBP-de-Hector.banorte\.com/902/interface/tmp909");
hbanos gravatar imagehbanos ( 2015-06-17 17:55:53 +0100 )edit

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

hbanos gravatar imagehbanos ( 2015-06-17 18:09:42 +0100 )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
tmonteil gravatar imagetmonteil ( 2015-06-17 19:02:25 +0100 )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
tmonteil gravatar imagetmonteil ( 2015-06-17 19:03:39 +0100 )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

hbanos gravatar imagehbanos ( 2015-06-18 17:20:30 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-06-17 08:05:34 +0100

Seen: 438 times

Last updated: Jun 17 '15