DeRhamComputation/superelliptic/tests/form_coordinates_test.sage

12 lines
290 B
Python
Raw Normal View History

p = 7
m = 4
F = GF(p)
Rx.<x> = PolynomialRing(F)
f = x^5 + x
C = superelliptic(f, m)
bbb = C.holomorphic_differentials_basis()
v = [GF(p).random_element() for _ in range(C.genus())]
aaa = 0*C.dx
for i in range(C.genus()):
aaa += v[i]*bbb[i]
print(vector(aaa.coordinates()) == vector(v))