ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 18 Jun 2015 10:20:30 -0500Why the function .cardinality() doesnt work with a permutation group ?http://ask.sagemath.org/question/27127/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 workWed, 17 Jun 2015 01:05:34 -0500http://ask.sagemath.org/question/27127/why-the-function-cardinality-doesnt-work-with-a-permutation-group/Answer by tmonteil for <p>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</p>
http://ask.sagemath.org/question/27127/why-the-function-cardinality-doesnt-work-with-a-permutation-group/?answer=27131#post-id-27131Could 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
Wed, 17 Jun 2015 06:15:42 -0500http://ask.sagemath.org/question/27127/why-the-function-cardinality-doesnt-work-with-a-permutation-group/?answer=27131#post-id-27131Comment by hbanos for <p>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):</p>
<pre><code>sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]])
sage: G.cardinality()
120
</code></pre>
http://ask.sagemath.org/question/27127/why-the-function-cardinality-doesnt-work-with-a-permutation-group/?comment=27150#post-id-27150I 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 helpThu, 18 Jun 2015 10:20:30 -0500http://ask.sagemath.org/question/27127/why-the-function-cardinality-doesnt-work-with-a-permutation-group/?comment=27150#post-id-27150Comment by tmonteil for <p>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):</p>
<pre><code>sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]])
sage: G.cardinality()
120
</code></pre>
http://ask.sagemath.org/question/27127/why-the-function-cardinality-doesnt-work-with-a-permutation-group/?comment=27145#post-id-27145Note 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()
24Wed, 17 Jun 2015 12:03:39 -0500http://ask.sagemath.org/question/27127/why-the-function-cardinality-doesnt-work-with-a-permutation-group/?comment=27145#post-id-27145Comment by tmonteil for <p>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):</p>
<pre><code>sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]])
sage: G.cardinality()
120
</code></pre>
http://ask.sagemath.org/question/27127/why-the-function-cardinality-doesnt-work-with-a-permutation-group/?comment=27144#post-id-27144your 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 againWed, 17 Jun 2015 12:02:25 -0500http://ask.sagemath.org/question/27127/why-the-function-cardinality-doesnt-work-with-a-permutation-group/?comment=27144#post-id-27144Comment by hbanos for <p>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):</p>
<pre><code>sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]])
sage: G.cardinality()
120
</code></pre>
http://ask.sagemath.org/question/27127/why-the-function-cardinality-doesnt-work-with-a-permutation-group/?comment=27140#post-id-27140I tried your example and it worked, but I don't know why mine does not work.Wed, 17 Jun 2015 11:09:42 -0500http://ask.sagemath.org/question/27127/why-the-function-cardinality-doesnt-work-with-a-permutation-group/?comment=27140#post-id-27140Comment by hbanos for <p>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):</p>
<pre><code>sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]])
sage: G.cardinality()
120
</code></pre>
http://ask.sagemath.org/question/27127/why-the-function-cardinality-doesnt-work-with-a-permutation-group/?comment=27139#post-id-27139Hi 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");Wed, 17 Jun 2015 10:55:53 -0500http://ask.sagemath.org/question/27127/why-the-function-cardinality-doesnt-work-with-a-permutation-group/?comment=27139#post-id-27139