Ask Your Question

Revision history [back]

click to hide/show revision 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.

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 x*t^2 + yt y*t + z
    for a,b,c,d,e in product(F,repeat=5)
        f = t^5 + at^4 a*t^4 + bt^3 b*t^3 + ct^2 c*t^2 + dt d*t + e
        C = HyperellipticCurve(f,h)

HyperellipticCurve(f,h)

See the documentation for product.

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.

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.