Re: [sage-combinat-devel] Permutations... again.

2012-11-20 Thread Travis Scrimshaw
Hey everyone, > Here's how you can get an infinite loop in two lines with Permutation. > > > > sage: p = > > > Permutation([(1,10,11,13,9,3,16,0,22),(8,2,15,18,24,26,20,21,4),(5,6,17,12,25,7,23,14,19)]) > > > > sage: p.to_cycles() > > > > Of course it has to be because my permutation goes

Re: [sage-combinat-devel] Permutations... again.

2012-11-20 Thread Vincent Delecroix
Saluut, > Here's how you can get an infinite loop in two lines with Permutation. > > sage: p = > Permutation([(1,10,11,13,9,3,16,0,22),(8,2,15,18,24,26,20,21,4),(5,6,17,12,25,7,23,14,19)]) > sage: p.to_cycles() > > Of course it has to be because my permutation goes from 0 to n-1 while the > co

[sage-combinat-devel] Permutations... again.

2012-11-20 Thread Nathann Cohen
Hellooo guys. Here's how you can get an infinite loop in two lines with Permutation. sage: p = Permutation([(1,10,11,13,9,3,16,0,22),(8,2,15,18,24,26,20,21,4),(5,6,17,12,25,7,23,14,19)]) sage: p.to_cycles() Of course it has to be because my permutation goes from 0 to n-1 while the code expec