Ask Your Question

Revision history [back]

You should have a look at the documentation.

sage: A = Zmod(4)
sage: P = PolynomialRing(A, 'x')
sage: x = P.gen()
sage: R = R.quotient(x^7 - 1)
sage: xbar = R.gen()
sage: xbar ** 7
1
sage: 4 * xbar
0

But note that computation of inverses does not work at all:

sage: 1 / xbar
Traceback (most recent call last):
...
NotImplementedError: The base ring (=Ring of integers modulo 4) is not a field