| 1 | initial version |
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
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.