Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagelib
Path: blob/master/sage/schemes/plane_curves/notes/riemann_roch_spaces.txt
4159 views
1
x, y, z = MPolynomialRing(GF(5), 3, 'xyz').gens()
2
f = x^7 + y^7 + z^7
3
C = Curve(f); pts = C.rational_points()
4
D = C.divisor([ (3, pts[0]), (-1,pts[1]), (10, pts[5]) ])
5
C.riemann_roch_basis(D) # output is random (!!!!)
6
7
but under MAGMA:
8
9
10
magma: f := x^7 + y^7 + z^7
11
magma: C := Curve(P, f)
12
magma: D := DivisorGroup(C)
13
magma: d = 3*Divisor(C![0,4,1]) - Divisor(C![1,2,1]) + 10*Divisor(C![4,1,0])
14
magma: RiemannRochSpace(d)
15
KModule of dimension 2 over GF(5)
16
Mapping from: KModule of dimension 2 over GF(5) to Function Field of C given by a rule
17
magma: V,i = RiemannRochSpace(d)
18
magma: i(V.1)
19
$.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 + 4
20
magma: i(V.2)
21
$.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 + 2
22
23
24
25