2023-03-23 18:45:28 +01:00
|
|
|
p = 3
|
|
|
|
m = 4
|
|
|
|
F = GF(p)
|
|
|
|
Rx.<x> = PolynomialRing(F)
|
|
|
|
f = x^5 + x
|
|
|
|
C = superelliptic(f, m)
|
|
|
|
g = (C.x)^5 * (C.y)^2 + 2*(C.x)^2 * (C.y)^3
|
|
|
|
g = g^p
|
|
|
|
print(g.pth_root()==(C.x)^5 * (C.y)^2 + 2*(C.x)^2 * (C.y)^3)
|
|
|
|
g = C.x
|
2023-11-29 15:41:39 +01:00
|
|
|
try:
|
|
|
|
print(g.pth_root())
|
|
|
|
print("False")
|
|
|
|
except ValueError:
|
|
|
|
print("True")
|