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 7 kB image not shown  

Quelle  other.tst   Sprache: unbekannt

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

#############################################################################
##
#W  other.tst                 GAP4 Package `RCWA'                 Stefan Kohl
##
##  This file contains automated tests of RCWA's functionality which is not
##  directly related to rcwa groups.
##
#############################################################################

gap> START_TEST("other.tst");
gap> RCWADoThingsToBeDoneBeforeTest();
gap> IsCommuting((1,2),(3,4));
true
gap> IsCommuting((1,2,3),(3,4));
false
gap> QuotientsList([2,3,6,12,15,30]);
3/2225/42 ]
gap> FloatQuotientsList([2,3,6,12,15,30]);
1.52., 2., 1.252. ]
gap> PositionsSublist([1,2,3,4,2,8,3,4,2,1,2,3,3,1,2,3],[2,3]);
21115 ]
gap> PositionsSublist([1,2,3,4,2,8,3,4,2,1,2,3,3,1,2,3],[3,3,4]);
[  ]
gap> Length(RandomCombination([1..10],5));
5
gap> IntOrInfinityToLaTeX(4);
"4"
gap> IntOrInfinityToLaTeX(infinity);
"\\infty"
gap> R := PolynomialRing(GF(4),1);; x := Z(4) * One(R);;
gap> x in DefaultRing(x);
true
gap> 2*infinity;
infinity
gap> infinity*2;
infinity
gap> infinity*infinity;
infinity
gap> DifferencesList(List([1..16],n->n^3));
719376191127169217271331397469547631721 ]
gap> DifferencesList(last);                
1218243036424854606672788490 ]
gap> DifferencesList(last);
6666666666666 ]
gap> QuotientsList(List([1..10],n->n^2));
49/416/925/1636/2549/3664/4981/64100/81 ]
gap> FloatQuotientsList(List([1..10],n->n^2));
4., 2.251.777781.56251.441.361111.306121.265621.23457 ]
gap> SearchCycle([1,4,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3]);    
123 ]
gap> SearchCycle([1,1,1,2,1,2,1,2]);
12 ]
gap> SearchCycle([1,1,1,2,1,2,1]);
12 ]
gap> SearchCycle([1,1,1,2,1,2]);
12 ]
gap> SearchCycle([1,1,1,2,1]);
fail
gap> SearchCycle([1,1,1,1,2,1,2]);
fail
gap> SearchCycle([1,1,1,1,2,1,2,1]);
fail
gap> SearchCycle([1,1,1,1,2,1,2,1,2]);
12 ]
gap> SearchCycle([1,1,1,1,2,3,1,2,3,1,2,3,1,2,3]);
123 ]
gap> SearchCycle([1,1,1,1,6,3,1,6,3,1,6,3,1,6,3]);
163 ]
gap> SearchCycle([1,1,1,1,6,3,1,1,6,3,1,1,6,3]);
1163 ]
gap> SearchCycle([2,5,2,7,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]);
7 ]
gap> SearchCycle([2,5,2,7,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]:alsopreperiod);
[ [ 25271 ], [ 7 ] ]
gap> SearchCycle([2,5,2,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7]:alsopreperiod);
[ [ 2527 ], [ 17 ] ]
gap> Trajectory(n->n^2,2,6);
2416256655364294967296 ]
gap> Trajectory(n->n-1,10,[0]);
109876543210 ]
gap> Trajectory(n->2*n,2,n->n mod 11 = 1);
2481632641282565121024 ]
gap> NextProbablyPrimeInt(1000);
1009
gap> primes := PrimeNumbersIterator(1000);
<iterator>
gap> l := [];;
gap> for p in primes do if p > 10000 then break; fi; Add(l,p); od;
gap> Length(l);
1229
gap> l{[1..20]};
235711131719232931374143475359616771 ]
gap> primes2 := ShallowCopy(primes);
<iterator>
gap> NextIterator(primes2);
10009
gap> IsIdenticalObj(primes,primes2);
false
gap> NextIterator(primes); 
10009
gap> LaTeXStringFactorsInt(Factorial(16));
"2^{15} \\cdot 3^6 \\cdot 5^3 \\cdot 7^2 \\cdot 11 \\cdot 13"
gap> EquivalenceClasses([1..100],n->Phi(n));
[ [ 12 ], [ 346 ], [ 581012 ], [ 791418 ], 
  [ 1516202430 ], [ 1122 ], [ 132126283642 ], 
  [ 173234404860 ], [ 19273854 ], [ 2533445066 ], 
  [ 2346 ], [ 35394552567072788490 ], [ 2958 ], 
  [ 3162 ], [ 5164688096 ], [ 3757637476 ], 
  [ 4155758288100 ], [ 43498698 ], [ 6992 ], [ 4794 ], 
  [ 65 ], [ 53 ], [ 81 ], [ 87 ], [ 59 ], [ 61779399 ], [ 85 ], [ 67 ], 
  [ 71 ], [ 739195 ], [ 79 ], [ 83 ], [ 89 ], [ 97 ] ]
gap> S4 := SymmetricGroup(4);; elms := AsSet(S4);;
gap> EquivalenceClasses(elms,function(g,h) return IsConjugate(S4,g,h); end);
[ [ (2,3,4), (2,4,3), (1,2,3), (1,2,4), (1,3,2), (1,3,4), (1,4,2), (1,4,3) ], 
  [ (3,4), (2,3), (2,4), (1,2), (1,3), (1,4) ], 
  [ (1,2,3,4), (1,2,4,3), (1,3,4,2), (1,3,2,4), (1,4,3,2), (1,4,2,3) ], 
  [ (1,2)(3,4), (1,3)(2,4), (1,4)(2,3) ], [ () ] ]
gap> EquivalenceClasses([3,5,2,6,8,7,12,14,15,16,6,3,6],n->Phi(n));
[ [ 2 ], [ 36636 ], [ 5812 ], [ 714 ], [ 1516 ] ]
gap> EquivalenceClasses([(1,2),(1,2),(1,2,3)],
>                       function(g,h) return IsConjugate(S4,g,h); end);
[ [ (1,2), (1,2) ], [ (1,2,3) ] ]
gap> RestrictedPartitionsWithoutRepetitions(10,[1..10]);
[ [ 10 ], [ 91 ], [ 82 ], [ 73 ], [ 721 ], [ 64 ], [ 631 ], 
  [ 541 ], [ 532 ], [ 4321 ] ]
gap> RestrictedPartitionsWithoutRepetitions(24,DivisorsInt(24));
[ [ 24 ], [ 1284 ], [ 12831 ], [ 12642 ], [ 126321 ], 
  [ 864321 ] ]
gap> ListOfPowers(10,8); 
10100100010000100000100000010000000100000000 ]
gap> GeneratorsAndInverses(SymmetricGroup(4));
[ (1,2,3,4), (1,2), (1,4,3,2), (1,2) ]
gap> AllGraphs(1);
[ [  ] ]
gap> AllGraphs(2);
[ [  ], [ [ 12 ] ] ]
gap> AllGraphs(3);
[ [  ], [ [ 12 ] ], [ [ 12 ], [ 13 ] ], 
  [ [ 12 ], [ 13 ], [ 23 ] ] ]
gap> AllGraphs(4);
[ [  ], [ [ 12 ] ], [ [ 12 ], [ 13 ] ], [ [ 12 ], [ 34 ] ], 
  [ [ 12 ], [ 13 ], [ 14 ] ], [ [ 12 ], [ 13 ], [ 23 ] ], 
  [ [ 12 ], [ 13 ], [ 24 ] ], [ [ 12 ], [ 13 ], [ 14 ], [ 23 ] ]
    , [ [ 12 ], [ 13 ], [ 24 ], [ 34 ] ], 
  [ [ 12 ], [ 13 ], [ 14 ], [ 23 ], [ 24 ] ], 
  [ [ 12 ], [ 13 ], [ 14 ], [ 23 ], [ 24 ], [ 34 ] ] ]
gap> List(AllGraphs(5),Length);
0122333344444455555566666
  6777788910 ]
gap> Length(last);
34
gap> GraphClasses(1);
[ [ [  ] ] ]
gap> GraphClasses(2);
[ [ [  ] ], [ [ [ 12 ] ] ] ]
gap> GraphClasses(3);
[ [ [  ] ], [ [ [ 12 ] ], [ [ 23 ] ], [ [ 13 ] ] ], 
  [ [ [ 12 ], [ 13 ] ], [ [ 12 ], [ 23 ] ], [ [ 13 ], [ 23 ] ] ], 
  [ [ [ 12 ], [ 13 ], [ 23 ] ] ] ]
gap> List(GraphClasses(4),Length);
16123441212361 ]
gap> Sum(last);
64
gap> IdGraphNC([[6,7],[7,8],[8,9]],GraphClasses(4));
7
gap> GraphClasses(4)[7];
[ [ [ 12 ], [ 13 ], [ 24 ] ], [ [ 13 ], [ 23 ], [ 24 ] ], 
  [ [ 12 ], [ 14 ], [ 23 ] ], [ [ 13 ], [ 24 ], [ 34 ] ], 
  [ [ 13 ], [ 14 ], [ 23 ] ], [ [ 12 ], [ 23 ], [ 34 ] ], 
  [ [ 13 ], [ 14 ], [ 24 ] ], [ [ 14 ], [ 23 ], [ 34 ] ], 
  [ [ 12 ], [ 24 ], [ 34 ] ], [ [ 12 ], [ 13 ], [ 34 ] ], 
  [ [ 14 ], [ 23 ], [ 24 ] ], [ [ 12 ], [ 14 ], [ 34 ] ] ]
gap> AssignGlobals(rec(shembulli_i_pare := 1, shembulli_i_dyte := 2));
The following global variables have been assigned:
[ "shembulli_i_dyte", "shembulli_i_pare" ]
gap> shembulli_i_pare;
1
gap> G := Group(ClassTransposition(0,2,1,2),ClassShift(0,6));
<rcwa group over Z with 2 generators>
gap> AssignGeneratorVariables(G);
The following global variables have been assigned: a, b
gap> F := FreeGroup("a","b","c");;
gap> a := F.1;; b := F.2;; c := F.3;;
gap> Q := F/[a^2,b^2,c^2,(a*b)^3,(a*c)^3,(b*c)^3];
<fp group on the generators [ a, b, c ]>
gap> epis := EpimorphismsUpToAutomorphisms(Q,SymmetricGroup(4));  
[ [ a, b, c ] -> [ (3,4), (2,3), (1,3) ] ]
gap> epis := EpimorphismsUpToAutomorphisms(Q,PcGroupCode(5475,18)); # the group is SmallGroup(18,4)
[ [ a, b, c ] -> [ f1, f1*f2, f1*f3 ] ]
gap> StructureDescription(Image(epis[1]));
"(C3 x C3) : C2"
gap> if IN_LOGGING_MODE <> false then Log2HTML(IN_LOGGING_MODE); fi;
gap> RCWADoThingsToBeDoneAfterTest();
gap> STOP_TEST( "other.tst", 62000000 );

#############################################################################
##
#E  other.tst . . . . . . . . . . . . . . . . . . . . . . . . . . . ends here

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