Below is a link to maple scripts to compute the degree of the loci of surfaces of degree d containing 2 or 3 lines,or a conic, or a twc, companion to the note
Enumeration
of surfaces containing a
curve of low degree,
joint with J.A.D.Maia, A.R.Silva e F.Xavier.
2-3lines.tar.gz
This builds on the original script for Maple found in P. Meurer,
The number of rational quartics on Calabi-Yau hypersurfaces in
weighted projective space P(2,1^4), Math. Scandin, 78, 63-83 1996, alg-geom/9409001; adapted with contributions by André Meireles (UFPE).
Works fine with maple9.
The script will eventually migrate to macaulay2 and / or singular.