[GAP Forum] two gap functions

Alec Makosi AIMakosi at mail.ru
Thu Nov 26 07:15:01 GMT 2009


 Dear Forum members,
 
what's wrong in the following two examples of GAP code:

G  := AlternatingGroup(12);
gens := StraightLineProgGens(GeneratorsOfGroup(G));
G  := Group(gens);
A  := AutomorphismGroup(G);

it break's with error:

CyclePermInt: <perm> must be a permutation (not a object (positional)) at
cyc := CyclePermInt( perm, i );
 called from
CycleStructurePerm( e[i] ) called from
func( elm ) called from
ForAny( [ 1 .. Length( e ) ], function ( i )
      return CycleStructurePerm( e[i] ) <> CycleStructurePerm( f[i] );
  end ) called from
RepOpElmTuplesPermGroup( true, G, [ rep ], [ rep ^ Int( exp ) ], 
StabilizerOfExternalSet( class ), StabilizerOfExternalSet( class ) ) called 
from
CompleteGaloisGroupPElement( cl, gal, power, p ) called from
...

and the secod  error: 

Syntax error: ; expected in test2.g line 5
  SaveWorkspace("ttt");
              ^
Error reading initial file "test2.g" abandoning remaining files

while reading file

i := 1;
j := 2;

while i < j do
  SaveWorkspace("ttt");
  i := i + 1;
od;


 These  stylized code examples arising from real... 

 Cheers,
Alec Makosi



More information about the Forum mailing list