Skip to content

Commit 3e4e538

Browse files
committed
change a manual example
such that the output does not depend on which packages are loaded
1 parent de8299f commit 3e4e538

1 file changed

Lines changed: 15 additions & 21 deletions

File tree

doc/groups.xml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -408,28 +408,22 @@ gap> gens := [ (1,2,3,4), (1,2)(3,4) ];;
408408
gap> d8 := Group( gens );;
409409
gap> SetName( d8, "d8" );
410410
gap> c2 := Subgroup( d8, [ (2,4) ] );;
411-
gap> IdempotentEndomorphismsWithImage( gens, c2 );
412-
[ [ (2,4), () ], [ (), (2,4) ] ]
413-
gap> IdempotentEndomorphismsData( d8 );
414-
rec( gens := [ (1,2,3,4), (1,2)(3,4) ],
415-
images := [ [ [ (), () ] ], [ [ (2,4), () ], [ (), (2,4) ] ],
416-
[ [ (1,3), () ], [ (), (1,3) ] ],
417-
[ [ (1,2)(3,4), (1,2)(3,4) ], [ (), (1,2)(3,4) ] ],
418-
[ [ (1,4)(2,3), (1,4)(2,3) ], [ (), (1,4)(2,3) ] ],
419-
[ [ (1,2,3,4), (1,2)(3,4) ] ] ] )
420-
gap> List( last.images, L -> Length(L) );
411+
gap> SortedList( IdempotentEndomorphismsWithImage( gens, c2 ) );
412+
[ [ (), (2,4) ], [ (2,4), () ] ]
413+
gap> data:= IdempotentEndomorphismsData( d8 );;
414+
gap> data.images[1];
415+
[ [ (), () ] ]
416+
gap> List( data.images, Length );
421417
[ 1, 2, 2, 2, 2, 1 ]
422-
gap> IdempotentEndomorphisms( d8 );
423-
[ [ (1,2,3,4), (1,2)(3,4) ] -> [ (), () ],
424-
[ (1,2,3,4), (1,2)(3,4) ] -> [ (2,4), () ],
425-
[ (1,2,3,4), (1,2)(3,4) ] -> [ (), (2,4) ],
426-
[ (1,2,3,4), (1,2)(3,4) ] -> [ (1,3), () ],
427-
[ (1,2,3,4), (1,2)(3,4) ] -> [ (), (1,3) ],
428-
[ (1,2,3,4), (1,2)(3,4) ] -> [ (1,2)(3,4), (1,2)(3,4) ],
429-
[ (1,2,3,4), (1,2)(3,4) ] -> [ (), (1,2)(3,4) ],
430-
[ (1,2,3,4), (1,2)(3,4) ] -> [ (1,4)(2,3), (1,4)(2,3) ],
431-
[ (1,2,3,4), (1,2)(3,4) ] -> [ (), (1,4)(2,3) ],
432-
[ (1,2,3,4), (1,2)(3,4) ] -> [ (1,2,3,4), (1,2)(3,4) ] ]
418+
gap> all:= IdempotentEndomorphisms( d8 );;
419+
gap> Length( all );
420+
10
421+
gap> all[1];
422+
[ (1,2,3,4), (1,2)(3,4) ] -> [ (), () ]
423+
gap> Size( Image( all[1] ) );
424+
1
425+
gap> Last( all ) = IdentityMapping( d8 );
426+
true
433427
]]></Example>
434428
</Description>
435429
</ManSection>

0 commit comments

Comments
 (0)