On Thu, Aug 30, 2012 at 9:25 AM, Chris Smith <[email protected]> wrote:
> On Thu, Aug 30, 2012 at 5:19 PM, David Joyner <[email protected]> wrote:
>> I guess the bottom line is I'm wondering how to enter the generators
>> of the Rubik's cube group, eg at
>
>>>> from sympy.combinatorics.generators import rubik_cube_generators
>>>> gens = rubik_cube_generators()
>
> A single one might be entered in cycle notation as:
>
> Permutation([(0, 2, 7, 5), (1, 4, 6, 3), (8, 32, 24, 16), (9, 33, 25,
> 17), (10, 34, 26, 18)])

When I enter that I get an error:

>>> Permutation([(0, 2, 7, 5), (1, 4, 6, 3), (8, 32, 24, 16), (9, 33, 25,17), 
>>> (10, 34, 26, 18)])
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File 
"/Users/davidjoyner/pythonfiles/sympy/sympy/combinatorics/permutations.py",
line 455, in __new__
    (len(temp) - 1))
ValueError: Integers 0 through 19 must be present or (for cyclic
notation) size must be given.

>
> --
> You received this message because you are subscribed to the Google Groups 
> "sympy" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/sympy?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to