FractionFieldElement works incorrectly over large fields

asked 2021-10-20 20:08:59 +0100

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)
edit retag flag offensive close merge delete

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 ( 2021-10-21 14:28:08 +0100 )edit

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 ( 2021-10-22 11:54:39 +0100 )edit