1 | initial version |
This isn't an answer, I know, but you could make your code a lot simpler:
F = GF(4, 'a') R.<t> = PolynomialRing(F) from itertools import product for x,y,z in in product(F,repeat=3): h = xt^2 + yt + z for a,b,c,d,e in product(F,repeat=5) f = t^5 + at^4 + bt^3 + ct^2 + dt + e C = HyperellipticCurve(f,h)
See the documentation for product.
2 | No.2 Revision |
This isn't an answer, I know, but you could make your code a lot simpler:
F = GF(4, 'a')
R.<t> = PolynomialRing(F)
from itertools import product
for x,y,z in in product(F,repeat=3):
h = See the documentation for product.
3 | No.3 Revision |
This isn't an answer, I know, but you could make your code a lot simpler:
F = GF(4, 'a')
R.<t> = PolynomialRing(F)
from itertools import product
for x,y,z in in product(F,repeat=3):
h = x*t^2 + y*t + z
for a,b,c,d,e in product(F,repeat=5)
f = t^5 + a*t^4 + b*t^3 + c*t^2 + d*t + e
C = HyperellipticCurve(f,h)
See the documentation for product.
4 | No.4 Revision |
This isn't an answer, I know, but you could make your code a lot simpler:
F = GF(4, 'a')
R.<t> = PolynomialRing(F)
from itertools import product
for x,y,z in product(F,repeat=3):
h = x*t^2 + y*t + z
for a,b,c,d,e in product(F,repeat=5)
product(F,repeat=5):
f = t^5 + a*t^4 + b*t^3 + c*t^2 + d*t + e
C = HyperellipticCurve(f,h)
See the documentation for product.