Small update:
Replacing Integers(p^2) by QuotientRing(ZZ, p^2) seems to fix the issue.
Op maandag 8 maart 2021 om 10:34:06 UTC+1 schreef dim...@gmail.com:
> On Mon, Mar 8, 2021 at 9:25 AM Alex Braat wrote:
> >
> > Hello,
> >
> > I have encountered some stran
Hello,
I have encountered some strange behavior when I evaluate multivariate
polynomials over the integers modulo n. For instance,
In:
p = 3
S = Integers(p^2)
R. = PolynomialRing(S)
f = x^2 * y^2
print(f([S(p),S(1)]), f([S(1), S(p)]))
Out:
1 0
while both evaluations should ofcourse be equal to