Skip to content

Commit

Permalink
added linear series demo examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Griffin Edwards committed Jun 5, 2024
1 parent 0f6096f commit 7146394
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions demo.m2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,26 @@ restart
needsPackage "ToricExtras"

-- linear series
P2 = toricProjectiveSpace 2;
D = 3 * P2_0; -- 3th Veronese Divisor of P2
linSeries = toricLinearSeries D;
monomials linSeries
isComplete linSeries
isBasepointFree linSeries
f = toricMap linSeries;
matrix f
isWellDefined f
ideal f == idealOfImage(linSeries, TargetRing => ring target f)

P1 = toricProjectiveSpace 1;
X = P1 ** P1;
T = ring X;
mons1 = {T_{0,2,2,0},T_{0,2,0,2},T_{2,0,0,2},T_{2,0,2,0}}
linSeries1 = toricLinearSeries mons1;
isComplete linSeries2
isBasepointFree linSeries2
g = toricMap linSeries2
isWellDefined g


-- projectivation of line bundles
Expand Down

0 comments on commit 7146394

Please sign in to comment.