FractionFieldElement works incorrectly over large fields

asked 3 years ago

Alex Karenin gravatar image

The code below returns a*b/a instead of b if characteristic of field is large. How can I bypass this limitation?

A=PolynomialRing(GF(2^31-1),['a','b'])
x, y = A.gens()[0], A.gens()[1]
print(x*y/x)
Preview: (hide)

Comments

1

Well, maybe because

NotImplementedError: Division of multivariate polynomials over prime fields with characteristic > 2^29 is not implemented.
FrédéricC gravatar imageFrédéricC ( 3 years ago )

That's my suspition as well. Is there I can do anything about this issue? I'd like to be able to handle 63 bit numbers.

Alex Karenin gravatar imageAlex Karenin ( 3 years ago )