[sympy] Re: Quotient rings of polynomial rings over finite fields

2018-03-13 Thread Leonid Kovalev
But it's better to avoid using variable name S, as S is heavily used in SymPy, in two ways: https://stackoverflow.com/a/41867990 -- 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

[sympy] Re: Quotient rings of polynomial rings over finite fields

2018-03-13 Thread Leonid Kovalev
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. Example: >>> S = FF(2).old_poly_ring(x, y)/[x**2, x*y, y**2] >>> S