Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  examples.tst   Sprache: unbekannt

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

##
## these examples should return the same output as described in 
## the toric documentation
##
gap> LoadPackage("toric");
true

#
# Chapter 22 cones and semigroups
#

#
gap> L:=[[1,0,0],[1,1,0],[1,1,1],[1,0,1]];; v:=[0,0,1];;
gap> InsideCone(v,L);
false
gap> L:=[[1,0],[3,4]];; v:=[1,-7];; InsideCone(v,L);
false
gap> L:=[[1,0],[3,4]];; v:=[4,-3];; InsideCone(v,L);
false
gap> L:=[[1,0],[3,4]];; v:=[4,-4];; InsideCone(v,L);
false
gap> L:=[[1,0],[3,4]];; v:=[4,-2];; InsideCone(v,L);
false
gap> L:=[[1,0],[3,4]];; v:=[4,-1];; InsideCone(v,L);
false
gap> L:=[[1,0],[3,4]];; v:=[4,1];; InsideCone(v,L);
true

#
gap> L:=[[1,0,0],[1,1,0],[1,1,1],[1,0,1]];; v:=[0,0,1];;
gap> InDualCone(v,L);
true
gap> L:=[[1,0],[3,4]];; v:=[1,-7];; InDualCone(v,L);
false
gap> L:=[[1,0],[3,4]];; v:=[4,-3];; InDualCone(v,L);
true
gap> L:=[[1,0],[3,4]];; v:=[4,-4];; InDualCone(v,L);
false
gap> L:=[[1,0],[3,4]];; v:=[4,-2];; InDualCone(v,L);
true
gap> L:=[[1,0],[3,4]];; v:=[4,-1];; InDualCone(v,L);
true
gap> L:=[[1,0],[3,4]];; v:=[4,1];; InDualCone(v,L);
true

#
gap> L:=[[1,0],[3,4]];; DualSemigroupGenerators(L);
[ [ 00 ], [ 01 ], [ 10 ], [ 2, -1 ], [ 3, -2 ], [ 4, -3 ] ]
gap> L:=[[1,0,0],[1,1,0],[1,1,1],[1,0,1]];;
gap> DualSemigroupGenerators(L);
[ [ 000 ], [ 001 ], [ 010 ], [ 1, -10 ], [ 10, -1 ] ]

#
gap> Perps:=[[1,0],[-1,0],[0,1],[0,-1]];
[ [ 10 ], [ -10 ], [ 01 ], [ 0, -1 ] ]
gap> A:=[0,4,0,3];
0403 ]
gap> PolytopeLatticePoints(A,Perps);
[ [ 00 ], [ 01 ], [ 02 ], [ 03 ], [ 10 ], [ 11 ], [ 12 ], 
  [ 13 ], [ 20 ], [ 21 ], [ 22 ], [ 23 ], [ 30 ], [ 31 ], 
  [ 32 ], [ 33 ], [ 40 ], [ 41 ], [ 42 ], [ 43 ] ]

#
gap> Cones1:=[[[2,-1],[-1,2]],[[-1,2],[-1,-1]],[[-1,-1],[2,-1]]];
[ [ [ 2, -1 ], [ -12 ] ], [ [ -12 ], [ -1, -1 ] ], 
  [ [ -1, -1 ], [ 2, -1 ] ] ]
gap> Faces(Cones1[1]); 
[ [ 1/21 ], [ 21 ] ]
gap> Faces(Cones1[2]); 
[ [ -2, -1 ], [ -11 ] ]
gap> Cones2:=[ [ [2,0,0],[0,2,0],[0,0,2] ], [[2,0,0],[0,2,0],[2,-2,1],[1,2,-2]]];
[ [ [ 200 ], [ 020 ], [ 002 ] ], 
  [ [ 200 ], [ 020 ], [ 2, -21 ], [ 12, -2 ] ] ]
gap> Faces(Cones2[1]); 
[ [ 001 ], [ 010 ], [ 100 ] ]
gap> Faces(Cones2[2]); 
[ [ 1/35/61 ], [ 1/20, -1 ], [ 201 ] ]

#
gap> MaxCones:=[[[2,0,0],[0,2,0],[0,0,2]],[[2,0,0],[0,2,0],[2,-2,1],[1,2,-2]]];;
gap> # this is the set of maximal cones in the fan Delta
gap> ToricStar([[1,0]],MaxCones);
[  ]
gap> ToricStar([[2,0,0],[0,2,0]],MaxCones);
[ [ [ 020 ], [ 200 ] ], [ [ 200 ], [ 020 ], [ 002 ] ], 
  [ [ 200 ], [ 020 ], [ 2, -21 ], [ 12, -2 ] ] ]
gap> MaxCones:=[ [ [2,0,0],[0,2,0],[0,0,2] ], [ [2,0,0],[0,2,0],[1,1,-2] ] ];;
gap> ToricStar([[2,0,0],[0,2,0]],MaxCones);
[ [ [ 020 ], [ 200 ] ], [ [ 200 ], [ 020 ], [ 002 ] ], 
  [ [ 200 ], [ 020 ], [ 11, -2 ] ] ]
gap> ToricStar([[1,0]],MaxCones);
[  ]

#
# Chapter 3: Affine toric varieties
#

#
gap> phi:=EmbeddingAffineToricVariety([[1,0],[3,4]]);
[ x_2, x_1, x_1^2/x_4, x_1^3/x_4^2, x_1^4/x_4^3 ]
gap> L:=[[1,0,0],[1,1,0],[1,1,1],[1,0,1]];;
gap> phi:=EmbeddingAffineToricVariety(L);
[ x_3, x_2, x_1/x_5, x_1/x_6 ]

#
# Chapter 4: Toric varieties X(\Delta)
#
gap> DivisorPolytope([6,6,0],[[2,-1],[-1,2],[-1,-1]]);
2*x_1-x_2+6, -x_1+2*x_2+6, -x_1-x_2 ]

#
gap> cones:=[[[2,-1],[-1,2]],[[-1,2],[-1,-1]],[[-1,-1],[2,-1]]];;
gap> div:=[6,6,0];; rays:=[[2,-1],[-1,2],[-1,-1]];;

#
gap> P_Div:=DivisorPolytopeLatticePoints(div,cones,rays);
[ [ -6, -6 ], [ -5, -5 ], [ -5, -4 ], [ -4, -5 ], [ -4, -4 ], [ -4, -3 ], 
  [ -4, -2 ], [ -3, -4 ], [ -3, -3 ], [ -3, -2 ], [ -3, -1 ], [ -30 ], 
  [ -2, -4 ], [ -2, -3 ], [ -2, -2 ], [ -2, -1 ], [ -20 ], [ -21 ], 
  [ -22 ], [ -1, -3 ], [ -1, -2 ], [ -1, -1 ], [ -10 ], [ -11 ], 
  [ 0, -3 ], [ 0, -2 ], [ 0, -1 ], [ 00 ], [ 1, -2 ], [ 1, -1 ], [ 2, -2 ] ]

#
gap> RiemannRochBasis(div,cones,rays);
1/(x_1^6*x_2^6), 1/(x_1^5*x_2^5), 1/(x_1^5*x_2^4), 1/(x_1^4*x_2^5), 
  1/(x_1^4*x_2^4), 1/(x_1^4*x_2^3), 1/(x_1^4*x_2^2), 1/(x_1^3*x_2^4), 
  1/(x_1^3*x_2^3), 1/(x_1^3*x_2^2), 1/(x_1^3*x_2), 1/x_1^31/(x_1^2*x_2^4), 
  1/(x_1^2*x_2^3), 1/(x_1^2*x_2^2), 1/(x_1^2*x_2), 1/x_1^2, x_2/x_1^2
  x_2^2/x_1^21/(x_1*x_2^3), 1/(x_1*x_2^2), 1/(x_1*x_2), 1/x_1, x_2/x_1, 
  1/x_2^31/x_2^21/x_2, 1, x_1/x_2^2, x_1/x_2, x_1^2/x_2^2 ]

#
gap> EulerCharacteristic(cones);
3

#
gap> BettiNumberToric(cones,1);
0
gap> BettiNumberToric(cones,2);
1

#
gap> CardinalityOfToricVariety(cones,3);
13
gap> CardinalityOfToricVariety(cones,4);
21
gap> CardinalityOfToricVariety(cones,5);
31
gap> CardinalityOfToricVariety(cones,7);
57

[Dauer der Verarbeitung: 0.24 Sekunden, vorverarbeitet 2026-06-23]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik