12.07.2015 Views

Sage Reference Manual: Elliptic and Plane Curves - Mirrors

Sage Reference Manual: Elliptic and Plane Curves - Mirrors

Sage Reference Manual: Elliptic and Plane Curves - Mirrors

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Sage</strong> <strong>Reference</strong> <strong>Manual</strong>: <strong>Elliptic</strong> <strong>and</strong> <strong>Plane</strong> <strong>Curves</strong>, Release 6.1.1OUTPUT:A list of function field elements that form a basis of the Riemann-Roch spaceEXAMPLE:sage: R. = GF(2)[]sage: f = x^3*y + y^3*z + x*z^3sage: C = Curve(f); pts = C.rational_points()sage: D = C.divisor([ (4, pts[0]), (4, pts[2]) ])sage: C.riemann_roch_basis(D)[x/y, 1, z/y, z^2/y^2, z/x, z^2/(x*y)]sage: R. = GF(5)[]sage: f = x^7 + y^7 + z^7sage: C = Curve(f); pts = C.rational_points()sage: D = C.divisor([ (3, pts[0]), (-1,pts[1]), (10, pts[5]) ])sage: C.riemann_roch_basis(D)[(-2*x + y)/(x + y), (-x + z)/(x + y)]Note: Currently this only works over prime field <strong>and</strong> divisors supported on rational points.class sage.schemes.plane_curves.projective_curve.ProjectiveSpaceCurve_generic(A,X)Bases: sage.schemes.plane_curves.curve.Curve_generic_projective13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!