I think QuotientRingElement is not meant to be instantiated directly like 
that. The docstring of QuotientRing discourages that, and I suppose the 
same applies to QuotientRingElement.  Using S.from_sympy(x) works better. 

>>> S = FF(2).old_poly_ring(x, y)/[x**2, x*y, y**2]
>>> S
>>> X = S.from_sympy(x)
>>> Y = S.from_sympy(y)
>>> print(X + X)
0 + <x**2,x*y,y**2>
>>> print(X + Y)
x + y + <x**2,x*y,y**2>
>>> print((X+Y)**2)
0 + <x**2,x*y,y**2>

You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to