show how to calculate intersection_multiplicity of point on elliptic curve: otherwise known as the order of vanishing - ord_P(f)

This commit is contained in:
narodnik
2022-07-20 12:56:12 +02:00
parent 6b2cb4380b
commit f75d02cf16

View File

@@ -0,0 +1,18 @@
# Calculate intersection multiplicity of a point in sage
q = 47
K = GF(q)
E = EllipticCurve(K, (0, 5))
Q = E(10, 26)
C = E.defining_polynomial()
R.<x, y, z> = PolynomialRing(K)
f = y - Q[1] * z
P.<x,y,z> = ProjectiveSpace(K, 2)
X = P.subscheme([C(x, y, z)])
Y = P.subscheme([f(x, y, z)])
Q = X([Q[0], Q[1]])
print(Q.intersection_multiplicity(Y))