Constructs a matrix s of sections that defines an embedding PP1->PPg-1 such that the image is a k-gonal g-nodal canonical curve. The construction of the sections is based on the construction implemented in the M2 package NodalCurves.
Step 1. We search f:S2(-k)→S such that det(f|pti) has at least two linear or one quadratic factor for g distinct points pti in an affine chart of PP1. This part is done by the function listOfFactors.
Step 2.We build g quadrics qi: if det(f|pti) has two linear factors then we commpute the two points Pi and Qi as the vanishing loci of the linear factors and define qi :=det(Pi | (x0,x1)t) * det(Qi | (x0,x1)t). If det(f|pti) already has a quadratic factor we can definie qi to be this factor.
Step 3. We compute a basis of H0(C,ωC) by {si :=∏gj≠i,j=1qi | i=1,...,g } and multiply the matrix s=(s1,...,sg) with a general matrix M∈GL(g,kk) to obtain more general sections.
i1 : (k,g,n)=(4,8,100); |
i2 : (p,kk,S)=getFieldAndRing(n); |
i3 : time s=sub(getSections(k,g,n),S); -- used 0.110574 seconds 1 8 o3 : Matrix S <--- S |
i4 : T=kk[t_0..t_(g-1)]; |
i5 : time I=ideal mingens ker map(S,T,s); -- used 0.476314 seconds o5 : Ideal of T |
i6 : time betti res I -- used 2.56267 seconds 0 1 2 3 4 5 6 o6 = total: 1 15 39 50 39 15 1 0: 1 . . . . . . 1: . 15 35 25 4 . . 2: . . 4 25 35 15 . 3: . . . . . . 1 o6 : BettiTally |