Path: blob/master/sage/schemes/plane_curves/notes/riemann_roch_spaces.txt
4159 views
x, y, z = MPolynomialRing(GF(5), 3, 'xyz').gens()1f = x^7 + y^7 + z^72C = Curve(f); pts = C.rational_points()3D = C.divisor([ (3, pts[0]), (-1,pts[1]), (10, pts[5]) ])4C.riemann_roch_basis(D) # output is random (!!!!)56but under MAGMA:789magma: f := x^7 + y^7 + z^710magma: C := Curve(P, f)11magma: D := DivisorGroup(C)12magma: d = 3*Divisor(C![0,4,1]) - Divisor(C![1,2,1]) + 10*Divisor(C![4,1,0])13magma: RiemannRochSpace(d)14KModule of dimension 2 over GF(5)15Mapping from: KModule of dimension 2 over GF(5) to Function Field of C given by a rule16magma: V,i = RiemannRochSpace(d)17magma: i(V.1)18$.1*$.1^6 + 4*$.1^2*$.1^5 + $.1^3*$.1^4 + 4*$.1^4*$.1^3 + $.1^5*$.1^2 + 4*$.1^6*$.1 + $.1^7 + 419magma: i(V.2)20$.1^6 + 4*$.1*$.1^5 + $.1^2*$.1^4 + 4*$.1^3*$.1^3 + $.1^4*$.1^2 + 4*$.1^5*$.1 + $.1^6 + 22122232425