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

Quelle  ALNUTH.tst   Sprache: unbekannt

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

gap> START_TEST("Installation test of Alnuth package");  
gap> mats := ExamUnimod( 1 );;
gap> F := FieldByMatrices( mats );
<rational matrix field of degree 4>
gap> DegreeOverPrimeField( F );
4
gap> EquationOrderBasis( F );
Basis( <rational matrix field of degree 4>, 
[ [ [ 1000 ], [ 0100 ], [ 0010 ], [ 0001 ] ], 
  [ [ 111122, -22 ], [ 33, -33, -66132 ], [ 22, -22, -2255 ], 
      [ 20, -24, -3880 ] ], 
  [ [ 528, -198, -132660 ], [ 462, -264, -6601848 ], 
      [ 132132330, -198 ], [ 192, -72, -180702 ] ], 
  [ [ 9570, -59425087788 ], [ 18810, -16038, -2811666528 ], 
      [ 9108, -5412, -554416830 ], [ 9816, -8400, -1374032532 ] ] ] )

# testing maxord.gp
gap> IsIntegerOfNumberField( F, mats[1] );
true
gap> MaximalOrderBasis( F );;

# testing units.gp
gap> UnitGroup( F );
<matrix group with 4 generators>
gap> IsCyclotomicField( F );
false

# testing fracidea.gp and decompra.gp
gap> IsomorphismPcpGroup( F, mats{[2..5]} );
[ [ [ 57641556673, -51250063536, -73214376480161071628256 ], 
      [ 2196431294428355806081439286258880 ], 
      [ -146428752964392862588864962994321, -80535814128 ], 
      [ 02928575059243928625888, -37537132751 ] ], 
  [ [ 130, -210 ], [ -4297105, -231 ], [ -210340 ], 
      [ -212142, -50 ] ], 
  [ 
      [ 6113341760402965, -3032143586011050, -4159967272068153
          14002438585824810 ], 
      [ 10588511869480164, -5251666322974043, -7205040811308855
          24252552936374367 ], 
      [ 3778184141734557, -1873864241780610, -2570850209123252
          8653736311352880 ], 
      [ 5051133104082267, -2505235179386847, -3437063756709534
          11569395035183716 ] ] ] -> [ g1, g2, g3 ]
gap> RelationLatticeOfUnits( F, mats );
[ [ 100010000012, -2 ], 
  [ 0100001000000 ], 
  [ 001000000000, -2 ], 
  [ 00010000000, -10 ], 
  [ 000020100001, -4 ], 
  [ 0000010000002 ], 
  [ 0000000100002 ], 
  [ 0000000010002 ], 
  [ 0000000001010 ], 
  [ 000000000022, -3 ] ]

# testing polyfactors.gp
gap> pol := UnivariatePolynomial( Rationals, [0,0,8,0,8,2,0,2] );
2*x_1^7+2*x_1^5+8*x_1^4+8*x_1^2
gap> f := UnivariatePolynomial( Rationals, [-4,0,0,1] );
x_1^3-4
gap> L := FieldByPolynomial( f );
<algebraic extension over the Rationals of degree 3>
gap> FactorsPolynomialAlgExt( L, pol );
[ !2*x_1, x_1, x_1+a, x_1^2+!1, x_1^2+(-a)*x_1+a^2 ]
gap> pol := UnivariatePolynomial( Rationals, [ 132, -1231 ] );
x_1^6+3*x_1^5+2*x_1^4-x_1^3+2*x_1^2+3*x_1+1
gap> f := UnivariatePolynomial( Rationals,[ 11/6459/16, -7/41 ] );
x_1^3-7/4*x_1^2+59/16*x_1+11/64
gap> L := FieldByPolynomial( f );
<algebraic extension over the Rationals of degree 3>
gap> FactorsPolynomialAlgExt( L, pol );
[ x_1^2+x_1+(-a+1/4), x_1^2+(-a^2+3/2*a-21/16)*x_1+!1
  x_1^2+(a^2-3/2*a+53/16)*x_1+(a^2-3/2*a+53/16) ]

# testing norm.gp and fracidea.gp
gap> pol := UnivariatePolynomial( Rationals, [ 10, -11 ] );
x_1^3-x_1^2+1
gap> L := FieldByPolynomial( pol );
<algebraic extension over the Rationals of degree 3>
gap> cosets := NormCosetsOfNumberField( L, 5 );;
gap> [Norm(cosets[1]), Length(cosets)];
51 ]
gap> ExponentsOfFractionalIdealDescription( L, cosets );
[ [ 1 ] ]
gap> STOP_TEST( "ALNUTH.tst", 100000);   

[Dauer der Verarbeitung: 0.11 Sekunden, vorverarbeitet 2026-06-18]