On Nov 9, 2007 12:24 AM, Carlo Hämäläinen <[EMAIL PROTECTED]> wrote:
> Is there a limit on the size of permutations with the Gap interface? I
> managed to get an error today which seems to be due to Gap putting
> "(...)" at the end of a line.

Yes, evidently there definitely is.  I wasn't aware of this until just now.
I've made this trac #1133, since I definitely consider it a serious issue:
  http://trac.sagemath.org/sage_trac/ticket/1133
Many thanks for reporting this with a complete example.

William

> Here's the error:
>
> <type 'exceptions.TypeError'>: Gap produced error output
> Syntax error: expression expected in 
> /home/carlo/.sage//temp/t40/13158//interf\
> ace//tmp line 1
> $sage3:=(1,2,8,30,43,13,3)(4,18,56,140,145,59,19)(5,23,69,162,167,72,24)(6,11,\
> 33,86,114,46,16)(7,12,34,87,115,47,17)(9,35,96,208,146,61,21)(10,38,103,220,16\
> 8,74,27)(14,22,58,141,252,124,48)(15,26,71,163,264,131,51)(20,62,150,284,288,1\
> 53,63)(25,75,172,306,310,175,76)(28,41,94,190,234,122,54)(29,42,95,191,235,123\
> ,55)(31,88,192,281,149,67,37)(32,91,199,303,171,81,40)(36,98,211,237,241,213,9\
> 9)(39,105,223,244,248,225,106)(44,50,68,144,277,236,116)(45,53,80,166,299,243,\
> 119)(49,126,255,197,193,258,127)(52,133,267,204,200,270,134)(57,142,278,232,28\
> 9,155,65)(60,66,152,285,185,282,147)(64,156,292,319,333,295,157)(70,164,300,23\
> 3,311,177,79)(73,78,174,307,188,304,169)(77,178,314,322,336,315,179)(82,110,20\
> 6,298,280,250,138)(83,111,207,276,302,251,139)(...);;
>                                                                               
> \
>                                                                               
> \
>                                                                               
> \
>                                                                               
> \
>                                                                               
> \
>                                                                               
> \
>                                                                               
> \
>                                                                               
> \
>                                                                               
> \
>                                                 ^
>
>    executing Read("/home/carlo/.sage//temp/t40/13158//interface//tmp");
>
>
>
> Here's the code to reproduce it:
>
> def p3Group(p):
>     assert is_prime(p)
>
>     F = gap.new("FreeGroup(3)")
>
>     a = F.gen(1)
>     b = F.gen(2)
>     c = F.gen(3)
>
>     rels = []
>     rels.append( a**Integer(p) )
>     rels.append( b**Integer(p) )
>     rels.append( c**Integer(p) )
>     rels.append( a*b*((b*a*c)**Integer(-1)) )
>     rels.append( c*a*((a*c)**Integer(-1)) )
>     rels.append( c*b*((b*c)**Integer(-1)) )
>
>     N = gap.NormalClosure(F, gap.Subgroup(F, rels))
>     niso = gap.NaturalHomomorphismByNormalSubgroupNC(F, N)
>
>     a = PermutationGroupElement(gap.Image(niso, a))
>
> # This works:
> p3Group(5)
>
> # This blows up:
> p3Group(7)
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
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/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to