"Source: Text/Geometry/Crv.text";
"Line: 1381";
"Date: Thu Sep 25 14:47:45 2025";
"Main: Fri Sep 26 14:29:19 2025";
// original file: Text/Geometry/Crv.text, line: 1381
// Example: H124E5 ()
print "Example: H124E5";
ei := GetEchoInput();
SetEchoInput(true);
P<x,y,z> := ProjectiveSpace(Rationals(),2);
C, I := RandomPlaneCurve(7,[3,0,1],P : RandomBound := 2);
C;
Genus(C);
assert $1 eq 6;
//check with OnlyOrdinarySingularities function
boo,d,I1 := HasOnlyOrdinarySingularities(C);
boo; d;
I eq I1;
assert $1;
// polynomials for canonical map come from the degree d-3=4
// graded piece of the adjoint ideal.
can_pols := AdjointLinearSystemFromIdeal(I, 4);
Sections(can_pols);
X := CanonicalImage(C, Sections(can_pols));
X;
SetEchoInput(ei);
