Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/rcwa/tst/   (GAP Algebra Version 4.15.1©)  Datei vom 22.8.2025 mit Größe 5 kB image not shown  

Quelle  perlist.tst   Sprache: unbekannt

 
Spracherkennung für: .tst vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

#############################################################################
##
#W  perlist.tst                GAP4 Package `RCWA'                Stefan Kohl
##
##  This file contains automated tests of RCWA's functionality for computing
##  with periodic lists. The periodic lists themselves are implemented in the
##  FR package of Laurent Bartholdi.
##
#############################################################################

gap> START_TEST( "perlist.tst" );
gap> RCWADoThingsToBeDoneBeforeTest();
gap> ct := ClassTransposition(0,3,2,3);
0(3), 2(3) )
gap> l := PeriodicList([],[0..11]);
[/ 01234567891011 ]
gap> Permuted(l,ct);
[/ 21054387611109 ]
gap> l := PeriodicList([17],[0..11]);
17, / 01234567891011 ]
gap> Permuted(l,ct);                 
1017, / 43276510981011 ]
gap> l := PeriodicList([17,23,45,47],[0..11]);
17234547, / 01234567891011 ]
gap> Permuted(l,ct);                          
4523171047, / 43276510981011 ]
gap> l := PeriodicList([17,23,45,47],[0..10]);
17234547, / 012345678910 ]
gap> Permuted(l,ct);                          
4523171047, / 432765109821054387, \
601093216549871010 ]
gap> T := RcwaMapping([[1,0,2],[3,1,2]]);;
gap> l := PeriodicList([0],[1,2]);
0, / 12 ]
gap> Permuted(Permuted(l,T),T) = Permuted(l,T^2);
true
gap> IsSubset([0..2],l);
true
gap> IsSubset([0..1],l);
false
gap> IsSubset(NonnegativeIntegers,l);
true
gap> IsSubset(Integers,l);           
true
gap> Sum(l);
infinity
gap> Sum(PeriodicList([],[-1,1]));                                   
fail
gap> Sum(PeriodicList([1,2],[0]));   
3
gap> Product(PeriodicList([],[-1,1]));
fail
gap> Product(PeriodicList([],[1]));   
1
gap> Product(PeriodicList([],[-1]));
fail
gap> Product(PeriodicList([],[2])); 
infinity
gap> -l;
0, / -1, -2 ]
gap> l1 := PeriodicList([1,2],[0..4]);  
12, / 01234 ]
gap> l2 := PeriodicList([1,2,3],[0..3]);
123, / 0123 ]
gap> l1+l2;
24, / 31357024641353524246 ]
gap> 1+l;    
1, / 23 ]
gap> l-1;
[ -1, / 01 ]
gap> 2*l;
0, / 24 ]
gap> l*3;
0, / 36 ]
gap> (l*3)/3 = l;
true
gap> l := PeriodicList([],[1,2]);
[/ 12 ]
gap> Sum(l);
infinity
gap> Product(l);
infinity
gap> l := PeriodicList([0],[1,2]);
0, / 12 ]
gap> Sum(l);
infinity
gap> Product(l);
0
gap> l := PeriodicList([1,2,3],[1,2,0]);
123, / 120 ]
gap> Sum(l);
infinity
gap> Product(l);
0
gap> l := PeriodicList([0],[0]);
0, / 0 ]
gap> Sum(l);
0
gap> Product(l);
0
gap> l := PeriodicList([-1],[1]);
[ -1, / 1 ]
gap> Sum(l);
infinity
gap> Product(l);
-1
gap> l := PeriodicList([-1],[-1]);
[ -1, / -1 ]
gap> Product(l);
fail
gap> l := PeriodicList([-1],[1,-1]);
[ -1, / 1, -1 ]
gap> Sum(l);
fail
gap> Product(l);
fail
gap> l := PeriodicList([],[1,-1,0]);
[/ 1, -10 ]
gap> Sum(l);
fail
gap> Product(l);
0
gap> l := PeriodicList([-1],[1,-1,0]);
[ -1, / 1, -10 ]
gap> Sum(l);
fail
gap> Product(l);
0
gap> l1 := PeriodicList([1,2,3],[1,2]);
123, / 12 ]
gap> l2 := PeriodicList([1,2,3,4],[1,2,3]);
1234, / 123 ]
gap> -l1;
[ -1, -2, -3, / -1, -2 ]
gap> l1+l2;
2465, / 335244 ]
gap> last-l1;
1234, / 123 ]
gap> 2*l1;
246, / 24 ]
gap> 2*l1-l1*2;
[/ 0 ]
gap> (2*l1)/2;
123, / 12 ]
gap> l1+1;
234, / 23 ]
gap> 3+l1;
456, / 45 ]
gap> 1-l1;
0, -1, -2, / 0, -1 ]
gap> T := RcwaMapping([[1,0,2],[3,1,2]]);
<rcwa mapping of Z with modulus 2>
gap> l := PeriodicList([],[1]);
[/ 1 ]
gap> Permuted(l,T);
[/ 112 ]
gap> Permuted(last,T);
[/ 122122123 ]
gap> Permuted(last,T);
[/ 1241331241241331241241331, \
25 ]
gap> Sum(Period(last));
64
gap> G := WreathProduct(Group(ClassTransposition(0,2,1,2)),
>                       Group(ClassShift(0,1)));
<wild rcwa group over Z with 2 generators>
gap> IsSubgroup(CT(Integers),G);
true
gap> StructureDescription(G);
"C2 wr Z"
gap> l := PeriodicList([],[1,2]);
[/ 12 ]
gap> Ball(G,l,3,Permuted:Spheres);
[ [ [/ 12 ] ], [ [/ 1211 ], [/ 1222 ] ], 
  [ [/ 12111111 ], [/ 12222222 ] ], 
  [ [/ 1211111111111111 ], 
      [/ 1222222222222222 ] ] ]
gap> List([1..6],k->Length(Ball(G,l,k,Permuted)));
35791113 ]
gap> l := PeriodicList([],[1,2,3]);
[/ 123 ]
gap> List([1..6],k->Length(Ball(G,l,k,Permuted)));
410224484155 ]
gap> l := PeriodicList([],[1..8]);
[/ 12345678 ]
gap> List([1..6],k->Length(Ball(G,l,k,Permuted)));
4916243240 ]
gap> l := PeriodicList([],[1..16]);
[/ 12345678910111213141516 ]
gap> List([1..5],k->Length(Ball(G,l,k,Permuted)));
410213758 ]
gap> RCWADoThingsToBeDoneAfterTest();
gap> STOP_TEST( "perlist.tst", 560000000 );

#############################################################################
##
#E  perlist.tst . . . . . . . . . . . . . . . . . . . . . . . . . . ends here

[Dauer der Verarbeitung: 0.14 Sekunden, vorverarbeitet 2026-06-15]