Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

FractionFieldElement works incorrectly over large fields

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)